code: def generate_tensor_map(tensors, model_names_set):
      tensor_map = {}
      for t in tensors:
          if t.name not in tensor_map:
              tensor_map[t.name] = generate_obfuscated_name(
                  "tensor", t.name, model_names_set
              )
      return tensor_map
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import argparse
  import datetime
  import os
  import hashlib
  from jinja2 import Environment, FileSystemLoader
  from py_proto import mace_pb2
  from utils import device
  from utils import util
  from utils.util import mace_check
  from utils.util import MaceLogger
  from utils import config_parser
  from utils.config_parser import CPP_KEYWORDS
  from transform.base_converter import MaceKeyword
label_desc: Use image node_id 2 for calling a global function with example usage: generate_tensor_map(tensors, model_names_set) and returns: tensor_map