code: def _preparse(
      source,
      f=_compose(_replace_locals, _replace_booleans, _rewrite_assign),
  ):
      """Compose a collection of tokenization functions
  
      Parameters
      ----------
      source : str
          A Python source code string
      f : callable
          This takes a tuple of (toknum, tokval) as its argument and returns a
          tuple with the same structure but possibly different elements. Defaults
          to the composition of ``_rewrite_assign``, ``_replace_booleans``, and
          ``_replace_locals``.
  
      Returns
      -------
      s : str
          Valid Python source code
  
      Notes
      -----
      The `f` parameter can be any callable that takes *and* returns input of the
      form ``(toknum, tokval)``, where ``toknum`` is one of the constants from
      the ``tokenize`` module and ``tokval`` is a string.
      """
      assert callable(f), "f must be callable"
      return tokenize.untokenize(lmap(f, tokenize_string(source)))
  
imports: import ast
  from functools import partial
  import tokenize
  import numpy
  from pandas.compat import StringIO, lmap, reduce, string_types, zip
  import pandas
  from pandas import compat
  from pandas.core import common
  from pandas.core.base import StringMixin
  from pandas.core.computation.ops import _LOCAL_TAG, BinOp, Constant, Div, FuncNode, Op, Term, UnaryOp, UndefinedVariableError, _arith_ops_syms, _bool_ops_syms, _cmp_ops_syms, _mathops, _reductions, _unary_ops_syms, is_term
  from pandas.core.computation.scope import Scope
  import pandas.io.formats.printing
label_desc: Use image node_id 7 for calling a global function with example usage: _preparse(source, f) and returns: tokenize