code: def _ipython_to_python(source):
      try:
          from IPython.core.inputsplitter import IPythonInputSplitter
      except ImportError as e:
          log.warning(
              "IPython is required to process Notebook source code - "
              "install it by running 'pip install ipython'"
          )
          raise MissingIPython() from e
      else:
          isp = IPythonInputSplitter(line_input_checker=False)
          python_source = isp.transform_cell(source)
          return _fix_ipython_to_python_lf(python_source, source)
  
imports: import ast
  import json
  import logging
  import os
  import re
  from guild import config
  from guild import guildfile
  from guild import model
  from guild import plugin
  from guild import python_util
  from guild import util
  from .None import flags_import_util
label_desc: Use image node_id 16 for calling a global function with example usage: _ipython_to_python(source) and returns: _fix_ipython_to_python_lf