code: def generate_embedding(self, pic):
      if type(pic) is str:
          pic = get_pic_from_png(pic)
      else:
          pic = regularize_pic(pic)
  
      # Get input and output tensors
      images_placeholder = tf.get_default_graph().get_tensor_by_name(
          "input:0"
      )
      embeddings = tf.get_default_graph().get_tensor_by_name(
          "embeddings:0"
      )
      phase_train_placeholder = (
          tf.get_default_graph().get_tensor_by_name("phase_train:0")
      )
  
      # Run forward pass to calculate embeddings
      feed_dict = {
          images_placeholder: [pic],
          phase_train_placeholder: False,
      }
      return self.sess.run(embeddings, feed_dict=feed_dict)[0]
  
imports: import tensorflow
  import numpy
  from PIL import Image
  import sys
  from scipy import misc
  import os
  import time
  from adversarialbox.attacks.tf.tools import deepfool
  import facenet
label_desc: Use image node_id 2 for calling the FacenetFR obj's underlying member method code with example usage: obj.generate_embedding(pic) and returns: self