code: def _build_analysis_graph_for_inspection(
      preprocessing_fn,
      specs,
      dataset_keys,
      input_cache,
      force_tf_compat_v1,
  ):
      """Builds the analysis graph for inspection."""
      if not force_tf_compat_v1:
          assert all(
              [isinstance(s, tf.TypeSpec) for s in specs.values()]
          ), specs
      (
          graph,
          structured_inputs,
          structured_outputs,
      ) = impl_helper.trace_preprocessing_function(
          preprocessing_fn,
          specs,
          use_tf_compat_v1=tf2_utils.use_tf_compat_v1(
              force_tf_compat_v1
          ),
      )
  
      transform_fn_future, cache_dict, _ = build(
          graph,
          structured_inputs,
          structured_outputs,
          dataset_keys=dataset_keys,
          cache_dict=input_cache,
      )
      return transform_fn_future, cache_dict
  
imports: import collections
  import dataclasses
  import hashlib
  from typing import Collection, Dict, Mapping, Optional, Tuple
  from typing import OrderedDict
  import tensorflow
  from tensorflow_transform import analyzer_nodes
  from tensorflow_transform import common_types
  from tensorflow_transform import graph_tools
  from tensorflow_transform import impl_helper
  from tensorflow_transform import nodes
  from tensorflow_transform import tf2_utils
  from tensorflow_transform import tf_utils
  from tensorflow_transform.beam import analyzer_cache
  from tensorflow_transform.beam import beam_nodes
  from tensorflow_transform.beam import combiner_packing_util
label_desc: Use image node_id 3 for calling a global function with example usage: _build_analysis_graph_for_inspection(preprocessing_fn, specs, dataset_keys, input_cache, force_tf_compat_v1) and returns: transform_fn_future,  cache_dict