code: def freeze_graph(session, outputs):
      """Freeze the current graph.
  
      Args:
        session: Tensorflow sessions containing the graph
        outputs: List of output tensors
  
      Returns:
        The frozen graph_def.
      """
      return convert_to_constants.convert_variables_to_constants(
          session,
          session.graph.as_graph_def(),
          [x.op.name for x in outputs],
      )
  
imports: import functools
  import io
  import itertools
  import operator
  import os
  import re
  import string
  import sys
  import tempfile
  import traceback
  import zipfile
  import numpy
  import tensorflow
  from google.protobuf import text_format
  from tensorflow.lite.testing import _pywrap_string_util
  from tensorflow.lite.testing import generate_examples_report
  from tensorflow.lite.tools import flatbuffer_utils
  from tensorflow.python.framework import convert_to_constants
  from tensorflow.python.saved_model import signature_constants
label_desc: Use image node_id 5 for calling a global function with example usage: freeze_graph(session, outputs) and returns: convert_to_constants