code: def load_module(handle, tags=None, load_options=None):
      if callable(handle):
          if tags is not None:
              raise ValueError(
                  "Passing a callable handle is mutually exclusive "
                  "with setting tags."
              )
          if load_options is not None:
              raise ValueError(
                  "Passing a callable handle is mutually exclusive "
                  "with setting load_options."
              )
          return handle
      else:
          try:
              # pylint: disable=g-import-not-at-top
              from keras.saving.legacy.saved_model import load_context
  
              set_load_options = (
                  load_options or load_context.get_load_options()
              )
          except (
              ImportError
          ):  # Expected before TF2.7 when keras is under tensorflow.
              try:
                  # pylint: disable=g-import-not-at-top
                  # pylint: disable=g-direct-tensorflow-import
                  from tensorflow.keras.saving.saved_model import (
                      load_context,
                  )
  
                  set_load_options = (
                      load_options or load_context.get_load_options()
                  )
              except ImportError:  # Expected before TF2.5.
                  try:
                      # pylint: disable=g-import-not-at-top
                      # pylint: disable=g-direct-tensorflow-import
                      from tensorflow.python.saved_model import (
                          load_context,
                      )
  
                      set_load_options = (
                          load_options
                          or load_context.get_load_options()
                      )
                  except ImportError:  # Expected before TF2.4.
                      set_load_options = load_options
          return module_v2.load(
              handle, tags=tags, options=set_load_options
          )
  
imports: import functools
  import json
  from absl import logging
  import tensorflow
  from tensorflow_hub import module_v2
  from tensorflow.python.framework import smart_cond
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 3 for calling a global function with example usage: load_module(handle, tags, load_options) and returns: handle, module_v2