code: def build_scope(resource, method):
          
          if ResourceList in inspect.getmro(resource) and method == 'GET':
              prefix = 'list'
          else:
              method_to_prefix = {'GET': 'get',
                                  'POST': 'create',
                                  'PATCH': 'update',
                                  'DELETE': 'delete'}
              prefix = method_to_prefix[method]
  
              if ResourceRelationship in inspect.getmro(resource):
                  prefix = '_'.join([prefix, 'relationship'])
  
          return '_'.join([prefix, resource.schema.opts.type_])
docs: Compute the name of the scope for oauth
  
          :param Resource resource: the resource manager
          :param str method: an http method
          :return str: the name of the scope