human
Can you provide a the Python program you requested given the following:
Complete the below
@pytest.fixture
def hass_recorder():

    ''''HASS fixture with in-memory recorder.'
    '''
assistant
#Here is the Python program you requested.
    hass = get_test_home_assistant()
    def setup_recorder(config=None):
        'Setup    with    params.'
        init_recorder_component(hass, config)
        hass.start()
        hass.block_till_done()
        hass.data[DATA_INSTANCE].block_till_done()
        return hass
    (yield setup_recorder)
    hass.stop()