code: def windowed(self: Tensor, w, l):
      "Scale pixel intensity by window width and window level"
      px = self.clone()
      px_min = l - w // 2
      px_max = l + w // 2
      px[px < px_min] = px_min
      px[px > px_max] = px_max
      return (px - px_min) / (px_max - px_min)
  
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 11 for calling a global function with example usage: windowed(w, l) and returns: unknown