code: def cosine(A, B):
      return np.dot(A, B.T) / (np.linalg.norm(A) * np.linalg.norm(B))
  
file_path: interpret-text/python/interpret_text/generative/model_lib/misc_utils.py
imports: import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: cosine(A, B) and returns: unknown