How to manually set state/value of sensor?

Hi,

but where i must put the “set_state.py” file for show it in the home assistant?

Thanks