code: def _resolve_compare_fn_var(
      name: str,
  ) -> tuple[str, parsed_args_lib.TextResultCompareFn]:
      """Resolves a value passed into --compare_fn."""
      fn = py_utils.get_py_var(name)
      if not isinstance(fn, Callable):
          raise ValueError(
              'Variable "{}" does not contain a Callable object'.format(
                  name
              )
          )
  
      return name, fn
  
imports: from __future__ import annotations
  import argparse
  import shlex
  import sys
  from typing import AbstractSet, Any, Callable, MutableMapping, Sequence
  from google.generativeai.notebook import argument_parser
  from google.generativeai.notebook import flag_def
  from google.generativeai.notebook import input_utils
  from google.generativeai.notebook import model_registry
  from google.generativeai.notebook import output_utils
  from google.generativeai.notebook import parsed_args_lib
  from google.generativeai.notebook import post_process_utils
  from google.generativeai.notebook import py_utils
  from google.generativeai.notebook import sheets_utils
  from google.generativeai.notebook.lib import llm_function
  from google.generativeai.notebook.lib import llmfn_inputs_source
  from google.generativeai.notebook.lib import llmfn_outputs
  from google.generativeai.notebook.lib import model
label_desc: Use image node_id 3 for calling a global function with example usage: _resolve_compare_fn_var(name) and returns: name,  fn