code: def _to_sam_points(points, w, h, negative=False):
      scaled_points = np.array(points) * np.array([w, h])
      labels = (
          np.zeros(len(points)) if negative else np.ones(len(points))
      )
      return scaled_points, labels
  
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 2 for calling a global function with example usage: _to_sam_points(points, w, h, negative) and returns: scaled_points,  labels