def METHOD_NAME(api_client, workspace_id, source_configuration_and_path, source_state_path):
    configuration, path = source_configuration_and_path
    METHOD_NAME = Source(api_client, workspace_id, configuration, path)
    yield METHOD_NAME
    METHOD_NAME.api_instance.delete_source(METHOD_NAME.get_payload)