code: def _get_image(ds):
      # @todo allow non 8-bit images here?
  
      img = ds.pixel_array
  
      low = ds.get("SmallestImagePixelValue", 0)
      high = ds.get("LargestImagePixelValue", None)
      if high is None:
          high = img.max()
  
      return ((255 / max(high - low, 1)) * (img - low)).astype(np.uint8)
  
imports: import logging
  import os
  import warnings
  import numpy
  import eta.core.utils
  import fiftyone.core.utils
  import fiftyone.utils.data
  import pydicom
  from pydicom.fileset import FileInstance, FileSet
label_desc: Use image node_id 1 for calling a global function with example usage: _get_image(ds) and returns: unknown