code: def string_to_scopes(scopes):
      
      if not scopes:
          return []
      elif isinstance(scopes, six.string_types):
          return scopes.split(' ')
      else:
          return scopes
docs: Converts stringifed scope value to a list.
  
      If scopes is a list then it is simply passed through. If scopes is an
      string then a list of each individual scope is returned.
  
      Args:
          scopes: a string or iterable of strings, the scopes.
  
      Returns:
          The scopes in a list.