code: def _to_sam_input(tensor):
      return (
          (255 * tensor.cpu().numpy())
          .astype("uint8")
          .transpose(1, 2, 0)
      )
  
imports: import numpy
  import eta.core.utils
  import fiftyone.core.labels
  import fiftyone.core.utils
  import fiftyone.utils.torch
  import fiftyone.zoo.models
  import torch
label_desc: Use image node_id 1 for calling a global function with example usage: _to_sam_input(tensor) and returns: unknown