code: def apply_rot_embed_list(x: List[torch.Tensor], sin_emb, cos_emb):
      if isinstance(x, torch.Tensor):
          x = [x]
      return [t * cos_emb + rot(t) * sin_emb for t in x]
  
imports: import math
  import warnings
  from collections import OrderedDict
  from typing import List, Optional, Tuple, Union
  import torch
  import torch.nn
  from torch import nn
  from lavis.models.clip_models.utils import freeze_batch_norm_2d
label_desc: Use image node_id 7 for calling a global function with example usage: apply_rot_embed_list(x, sin_emb, cos_emb) and returns: unknown