code: def cosine(A, B):
      return np.dot(A, B.T) / (np.linalg.norm(A) * np.linalg.norm(B))
  
imports: import streamlit
  import numpy
  import os
  import torch
  import pandas
  import json
  from tqdm import tqdm
  import transformers
  from model_lib.hf_tooling import HF_LM
  from easydict import EasyDict
  from scipy.special import softmax
  import seaborn
  import matplotlib.pyplot
  from hooks import *
  from model_lib.misc_utils import *
  from model_lib.streamlit_frontend import css
  from rare_knowledge.collection import *
label_desc: Use image node_id 3 for calling a global function with example usage: cosine(A, B) and returns: unknown