def METHOD_NAME(self, context):
    resource = {
        'package_id': DATASET_NAME,
        'url': RESOURCE_LINKED_URL,
        'resource_type': 'api',
        'url_type': 'api',
        'format': 'CSV',
        'name': 'test.csv'
    }
    try:
        resource_dict = _get_action('resource_create')(context, resource)
    except ValidationError as e:
        assert False
    return resource_dict