code: def get_cosine(x, y, eps=1e-12):
      """
      Computes cosine distance between two tensors.
      The cosine distance is the inverse cosine similarity
      -> cosine_distance = abs(-cosine_distance) to make it
      similar in behavior to euclidean distance
      """
      sim_mt = cosine_similarity(x, y, eps)
      return sim_mt
  
imports: from pptracking.python.mot.visualize import plot_tracking
  from python.visualize import visualize_attr
  import os
  import re
  import cv2
  import gc
  import numpy
  import pandas
  from tqdm import tqdm
  from functools import reduce
  import warnings
label_desc: Use image node_id 6 for calling a global function with example usage: get_cosine(x, y, eps) and returns: sim_mt