code: def _encode_and_add_to_node_collection(
      collection_prefix: str,
      key: types.FPLKeyType,
      node: types.TensorType,
  ) -> None:
      tf.compat.v1.add_to_collection(
          encoding.with_suffix(collection_prefix, encoding.KEY_SUFFIX),
          encoding.encode_key(key),
      )
      tf.compat.v1.add_to_collection(
          encoding.with_suffix(collection_prefix, encoding.NODE_SUFFIX),
          encoding.encode_tensor_node(node),
      )
  
file_path: model-analysis/tensorflow_model_analysis/eval_saved_model/export.py
imports: from typing import Any, Callable, Dict, Optional, Union
  import tensorflow
  from tensorflow import estimator
  from tensorflow_model_analysis import version
  from tensorflow_model_analysis.api import types
  from tensorflow_model_analysis.eval_saved_model import constants
  from tensorflow_model_analysis.eval_saved_model import encoding
  from tensorflow_model_analysis.eval_saved_model import util
  from tensorflow_model_analysis.utils import util
  from tensorflow.python.estimator.export import export
label_desc: Use image node_id 4 for calling a global function with example usage: _encode_and_add_to_node_collection(collection_prefix, key, node) without return types