code: def format(self, fmt, locale=None):
          
          return self._formatter.format(self, fmt, locale)
docs: Formats the instance using the given format.
  
          :param fmt: The format to use
          :type fmt: str
  
          :param locale: The locale to use
          :type locale: str or None
  
          :rtype: str