class_docstr: Holds the result of a single showwarning() call.
  
  Notes
  -----
  `WarningMessage` is copied from the Python 2.6 warnings module,
  so it can be used in NumPy with older Python versions.
code: def __init__(
      self, message, category, filename, lineno, file=None, line=None
  ):
      local_values = locals()
      for attr in self._WARNING_DETAILS:
          setattr(self, attr, local_values[attr])
      if category:
          self._category_name = category.__name__
      else:
          self._category_name = None
  
file_path: catboost/contrib/python/ipython/py2/IPython/external/decorators/_numpy_testing_utils.py
imports: import sys
  import warnings
label_desc: Use image node_id 1 to create a new WarningMessage object from inherited base classes: object with example: obj = WarningMessage(message, category, filename, lineno, file, line)