code: def GetFormatterObject(cls, data_type):
      
      data_type = data_type.lower()
      if data_type not in cls._formatter_objects:
        formatter_object = None
  
        if data_type in cls._formatter_classes:
          formatter_class = cls._formatter_classes[data_type]
          # TODO: remove the need to instantiate the Formatter classes
          # and use class methods only.
          formatter_object = formatter_class()
  
        if not formatter_object:
          logger.warning(
              'Using default formatter for data type: {0:s}'.format(data_type))
          formatter_object = default.DefaultFormatter()
  
        cls._formatter_objects[data_type] = formatter_object
  
      return cls._formatter_objects[data_type]
docs: Retrieves the formatter object for a specific data type.
  
      Args:
        data_type (str): data type.
  
      Returns:
        EventFormatter: corresponding formatter or the default formatter if
            not available.