human
Solve the following python programming problem given the following code:
@pytest.fixture
def hass_recorder():
assistant
#Here is the Python program you requested.

    """HASS fixture with in-memory recorder.
    """
    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()