code: def call_tip(oinfo, format_call=True):
      """DEPRECATED since 6.0. Extract call tip data from an oinfo dict."""
      warnings.warn(
          "`call_tip` function is deprecated as of IPython 6.0"
          "and will be removed in future versions.",
          DeprecationWarning,
          stacklevel=2,
      )
      # Get call definition
      argspec = oinfo.get("argspec")
      if argspec is None:
          call_line = None
      else:
          # Callable objects will have 'self' as their first argument, prune
          # it out if it's there for clarity (since users do *not* pass an
          # extra first argument explicitly).
          try:
              has_self = argspec["args"][0] == "self"
          except (KeyError, IndexError):
              pass
          else:
              if has_self:
                  argspec["args"] = argspec["args"][1:]
  
          call_line = oinfo["name"] + format_argspec(argspec)
  
      # Now get docstring.
      # The priority is: call docstring, constructor docstring, main one.
      doc = oinfo.get("call_docstring")
      if doc is None:
          doc = oinfo.get("init_docstring")
      if doc is None:
          doc = oinfo.get("docstring", "")
  
      return call_line, doc
  
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 9 for calling a global function with example usage: call_tip(oinfo, format_call) and returns: call_line,  doc