def resource_fields(resource, fields):
 if fields:
  resource = {key: item for (key, item) in resource.items() if (key in fields)}
 return attributes.populate_project_info(resource)

def resource_fields ( resource , fields ) : if fields : resource = { key : item for ( key , item ) in resource . items ( ) if ( key in fields ) } return attributes . populate_project_info ( resource )
return only the resource items that are in fields .