code: def scaled_px(self: DcmDataset):
      "`pixels` scaled by `RescaleSlope` and `RescaleIntercept`"
      img = self.pixels
      if (
          hasattr(self, "RescaleSlope")
          and hasattr(self, "RescaleIntercept") is not None
      ):
          return img * self.RescaleSlope + self.RescaleIntercept
      else:
          return img
  
imports: from __future__ import annotations
  from ..basics import *
  from ..vision.all import *
  from ..data.transforms import *
  import pydicom, kornia, skimage
  from pydicom.dataset import Dataset
  from pydicom.tag import BaseTag
  from pydicom.multival import MultiValue
  from PIL import Image
label_desc: Use image node_id 5 for calling a global function with example usage: scaled_px() and returns: unknown, img