code: def get_alias(self):
          
          alias = None
          if self.alias:
              alias = self.alias
          elif self.auto_alias:
              alias = self.auto_alias
  
          return alias
docs: Gets the alias for the table or the auto_alias if one is set.
          If there isn't any kind of alias, None is returned.
  
          :returns: The table alias, auto_alias, or None
          :rtype: str or None