class_docstr: Simple class to store the value of macros as strings.
  
  Macro is just a callable that executes a string of IPython
  input when called.
docstr: store the macro value, as a single string which can be executed
code: def __init__(self, code):
      """store the macro value, as a single string which can be executed"""
      lines = []
      enc = None
      for line in code.splitlines():
          coding_match = coding_declaration.match(line)
          if coding_match:
              enc = coding_match.group(1)
          else:
              lines.append(line)
      code = "\n".join(lines)
      if isinstance(code, bytes):
          code = code.decode(enc or DEFAULT_ENCODING)
      self.value = code + "\n"
  
file_path: catboost/contrib/python/ipython/py3/IPython/core/macro.py
imports: import re
  from IPython.utils.encoding import DEFAULT_ENCODING
label_desc: Use image node_id 1 to create a new Macro object from inherited base classes: object with example: obj = Macro(code)