def METHOD_NAME(_, resource_type):
    """Creates a list of GCP resource mocks retrieved by the scanner."""
    resources = []
    if resource_type != 'dataset_policy':
        raise ValueError(
            'unexpected resource type: got %s, want dataset_policy',
            resource_type,
        )
    Resource = collections.namedtuple(
        'Resource',
        # fields based on required fields from Resource in dao.py.
        ['full_name', 'type', 'name', 'parent_type_name', 'parent',
         'data'],
    )
    for resource in fbsd.BIGQUERY_DATA:
        policy_name = resource['full_name']
        dataset_name =  '/'.join(policy_name.split('/')[:-3]) + '/'
        proj_name = '/'.join(dataset_name.split('/')[:-3]) + '/'
        proj = Resource(
            full_name=proj_name,
            type='project',
            name='projects/' + resource['project_id'],
            parent_type_name='',
            parent=None,
            data='',
        )
        dataset= Resource(
            full_name=dataset_name,
            type='dataset',
            name='dataset/' + resource['dataset_id'],
            parent_type_name='project',
            parent=proj,
            data='',
        )
        policy = Resource(
            full_name=policy_name,
            type='dataset_policy',
            parent_type_name='dataset',
            name='dataset_policies/' + resource['dataset_id'],
            parent=dataset,
            data=json.dumps([{}]),
        )
        resources.append(policy)
    return resources