code: def hist_scaled(
      self: DcmDataset, brks=None, min_px=None, max_px=None
  ):
      "Pixels scaled to a `min_px` and `max_px` value"
      px = self.scaled_px
      if min_px is not None:
          px[px < min_px] = min_px
      if max_px is not None:
          px[px > max_px] = max_px
      return px.hist_scaled(brks=brks)
  
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 10 for calling a global function with example usage: hist_scaled(brks, min_px, max_px) and returns: px