code: def get_layer_indices(layer_lookup, tf_layers):
      """Giving a lookup of model layer attribute names and tensorflow variable names,
      find matching parameters.
  
      Arguments:
          layer_lookup {dict} -- Dictionary mapping pytorch attribute names to (partial)
              tensorflow variable names. Expects dict of the form {'attr': ['tf_name', ...]}
              where the '...'s are ignored.
          tf_layers {list} -- List of tensorflow variable names.
  
      Returns:
          list -- The input dictionary with the list of matching inds appended to each item.
      """
      layer_inds = {}
      for name, value in layer_lookup.items():
          layer_inds[name] = value + [
              [i for i, n in enumerate(tf_layers) if value[0] in n]
          ]
      return layer_inds
  
imports: import tensorflow
  import torch
  import json
  import os, sys
  from dependencies.facenet.src import facenet
  from dependencies.facenet.src.models import inception_resnet_v1
  from dependencies.facenet.src.align import detect_face
  from models.inception_resnet_v1 import InceptionResnetV1
  from models.mtcnn import PNet, RNet, ONet
label_desc: Use image node_id 2 for calling a global function with example usage: get_layer_indices(layer_lookup, tf_layers) and returns: layer_inds