code: def _get_path(entity_id):
      '''Get the entity_id as a string if it is a Reference.
  
      @param entity_id The ID either a reference or a string of the entity
            to get.
      @return entity_id as a string
      '''
      try:
          path = entity_id.path()
      except AttributeError:
          path = entity_id
      if path.startswith('cs:'):
          path = path[3:]
      return patf _get_path(entity_id):
      '''Get the entity_id as a string if it is a Reference.
  
      @param entity_id The ID either a reference or a string of the entity
            to get.
      @return entity_id as a string
      '''
      try:
          path = entity_id.path()
      except AttributeError:
          path = entity_id
      if path.startswith('cs:'):
          path = path[3:]
      return path
docs: Get the entity_id as a string if it is a Reference.
  
      @param entity_id The ID either a reference or a string of the entity
            to get.
      @return entity_id as a string