code: def _make_help_call(target, esc):
      """Prepares a pinfo(2)/psearch call from a target name and the escape
      (i.e. ? or ??)"""
      method = (
          "pinfo2"
          if esc == "??"
          else "psearch"
          if "*" in target
          else "pinfo"
      )
      arg = " ".join([method, target])
      # Prepare arguments for get_ipython().run_line_magic(magic_name, magic_args)
      t_magic_name, _, t_magic_arg_s = arg.partition(" ")
      t_magic_name = t_magic_name.lstrip(ESC_MAGIC)
      return "get_ipython().run_line_magic(%r, %r)" % (
          t_magic_name,
          t_magic_arg_s,
      )
  
imports: import ast
  from codeop import CommandCompiler, Compile
  import re
  import sys
  import tokenize
  from typing import List, Tuple, Optional, Any
  import warnings
  from IPython.utils import tokenutil
label_desc: Use image node_id 7 for calling a global function with example usage: _make_help_call(target, esc) and returns: unknown