code: def make_construct_fn(  # pylint: disable=invalid-name
      add_metrics_callbacks: Optional[
          List[types.AddMetricsCallbackType]
      ],
      config: model_agnostic_predict.ModelAgnosticConfig,
  ):
      """Returns a construct fn for constructing the model agnostic eval graph."""
  
      def construct_fn():  # pylint: disable=invalid-name
          """Function for constructing a model agnostic eval graph."""
          return ModelAgnosticEvaluateGraph(
              add_metrics_callbacks, config
          )
  
      return construct_fn
  
file_path: model-analysis/tensorflow_model_analysis/model_agnostic_eval/model_agnostic_evaluate_graph.py
imports: from typing import List, Optional
  import tensorflow
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_metrics_graph import eval_metrics_graph
  from tensorflow_model_analysis.model_agnostic_eval import model_agnostic_predict
label_desc: Use image node_id 1 for calling a global function with example usage: make_construct_fn(add_metrics_callbacks, config) and returns: construct_fn, ModelAgnosticEvaluateGraph