code: def _disambiguate_normal(normal, up):
      up_t = torch.tensor(up).to(normal)
      flip = (up_t * normal).sum().sign()
      up = normal * flip
      up = up.tolist()
      return up
  
file_path: pytorch3d/pytorch3d/implicitron/tools/eval_video_trajectory.py
imports: import logging
  import math
  from typing import Optional, Tuple
  import torch
  from pytorch3d.implicitron.tools import utils
  from pytorch3d.implicitron.tools.circle_fitting import fit_circle_in_3d
  from pytorch3d.renderer import look_at_view_transform, PerspectiveCameras
  from pytorch3d.transforms import Scale
label_desc: Use image node_id 3 for calling a global function with example usage: _disambiguate_normal(normal, up) and returns: up