code: def ImageBlock(cls: PILBase = PILImage):
      "A `TransformBlock` for images of `cls`"
      return TransformBlock(
          type_tfms=cls.create, batch_tfms=IntToFloatTensor
      )
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  from .core import *
  import types
label_desc: Use image node_id 6 for calling a global function with example usage: ImageBlock(cls) and returns: TransformBlock