docstr: Assemble the mimebundle as unformatted lists of information
docstr_tok: ["Assemble","the","mimebundle","as","unformatted","lists","of","information"]
code: def _make_info_unformatted(
      self, obj, info, formatter, detail_level, omit_sections
  ) -> UnformattedBundle:
      """Assemble the mimebundle as unformatted lists of information"""
      bundle: UnformattedBundle = {
          "text/plain": [],
          "text/html": [],
      }
  
      # A convenience function to simplify calls below
      def append_field(
          bundle: UnformattedBundle,
          title: str,
          key: str,
          formatter=None,
      ):
          self._append_info_field(
              bundle,
              title=title,
              key=key,
              info=info,
              omit_sections=omit_sections,
              formatter=formatter,
          )
  
      def code_formatter(text) -> Bundle:
          return {
              "text/plain": self.format(text),
              "text/html": pylight(text),
          }
  
      if info["isalias"]:
          append_field(bundle, "Repr", "string_form")
  
      elif info["ismagic"]:
          if detail_level > 0:
              append_field(bundle, "Source", "source", code_formatter)
          else:
              append_field(bundle, "Docstring", "docstring", formatter)
          append_field(bundle, "File", "file")
  
      elif info["isclass"] or is_simple_callable(obj):
          # Functions, methods, classes
          append_field(
              bundle, "Signature", "definition", code_formatter
          )
          append_field(
              bundle,
              "Init signature",
              "init_definition",
              code_formatter,
          )
          append_field(bundle, "Docstring", "docstring", formatter)
          if detail_level > 0 and info["source"]:
              append_field(bundle, "Source", "source", code_formatter)
          else:
              append_field(
                  bundle, "Init docstring", "init_docstring", formatter
              )
  
          append_field(bundle, "File", "file")
          append_field(bundle, "Type", "type_name")
          append_field(bundle, "Subclasses", "subclasses")
  
      else:
          # General Python objects
          append_field(
              bundle, "Signature", "definition", code_formatter
          )
          append_field(
              bundle, "Call signature", "call_def", code_formatter
          )
          append_field(bundle, "Type", "type_name")
          append_field(bundle, "String form", "string_form")
  
          # Namespace
          if info["namespace"] != "Interactive":
              append_field(bundle, "Namespace", "namespace")
  
          append_field(bundle, "Length", "length")
          append_field(bundle, "File", "file")
  
          # Source or docstring, depending on detail level and whether
          # source found.
          if detail_level > 0 and info["source"]:
              append_field(bundle, "Source", "source", code_formatter)
          else:
              append_field(bundle, "Docstring", "docstring", formatter)
  
          append_field(
              bundle, "Class docstring", "class_docstring", formatter
          )
          append_field(
              bundle, "Init docstring", "init_docstring", formatter
          )
          append_field(
              bundle, "Call docstring", "call_docstring", formatter
          )
      return bundle
  
imports: from dataclasses import dataclass
  from inspect import signature
  from textwrap import dedent
  import ast
  import html
  import inspect
  import io
  import linecache
  import os
  import sys
  import types
  import warnings
  from typing import Any, Optional, Dict, Union, List, Tuple
  from typing import TypeAlias
  from IPython.core import page
  from IPython.lib.pretty import pretty
  from IPython.testing.skipdoctest import skip_doctest
  from IPython.utils import PyColorize
  from IPython.utils import openpy
  from IPython.utils.dir2 import safe_hasattr
  from IPython.utils.path import compress_user
  from IPython.utils.text import indent
  from IPython.utils.wildcard import list_namespace
  from IPython.utils.wildcard import typestr2type
  from IPython.utils.coloransi import TermColors, ColorScheme, ColorSchemeTable
  from IPython.utils.py3compat import cast_unicode
  from IPython.utils.colorable import Colorable
  from IPython.utils.decorators import undoc
  from pygments import highlight
  from pygments.lexers import PythonLexer
  from pygments.formatters import HtmlFormatter
label_desc: Use image node_id 13 for calling the Inspector obj's underlying member method code with example usage: obj._make_info_unformatted(obj, info, formatter, detail_level, omit_sections) and returns: bundle, dict