code: def _get_patch_map():
      global _mapping_tf
  
      # decide if generate
      patch_tf = find_spec("tensorflow") is not None
  
      if patch_tf and _mapping_tf is None:
          _mapping_tf = []
          import keras
          import tensorflow
          from bigdl.nano.tf.keras import Sequential
          from bigdl.nano.tf.keras import Model
          from bigdl.nano.tf.optimizers import SparseAdam
          from bigdl.nano.tf.keras.layers import Embedding
  
          _mapping_tf += [
              [tensorflow.keras, "Model", Model, None],
              [tensorflow.keras, "Sequential", Sequential, None],
              [tensorflow.keras.optimizers, "Adam", SparseAdam, None],
              [tensorflow.keras.layers, "Embedding", Embedding, None],
              [keras, "Model", Model, None],
              [keras, "Sequential", Sequential, None],
              [keras.layers, "Embedding", Embedding, None],
          ]
  
      if not patch_tf:
          _mapping_tf = []
  
      return _mapping_tf
  
imports: from importlib.util import find_spec
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: _get_patch_map() and returns: _mapping_tf