code: def __init_subclass__(cls) -> None:
      # Since `get_params` is a `@staticmethod`, we have to bind it to the class itself rather than to an instance.
      # This method is called after subclassing has happened, i.e. `cls` is the subclass, e.g. `Resize`.
      if cls._v1_transform_cls is not None and hasattr(
          cls._v1_transform_cls, "get_params"
      ):
          cls.get_params = staticmethod(
              cls._v1_transform_cls.get_params
          )
  
imports: from __future__ import annotations
  import enum
  from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
  import PIL.Image
  import torch
  from torch import nn
  from torch.utils._pytree import tree_flatten, tree_unflatten
  from torchvision import tv_tensors
  from torchvision.transforms.v2._utils import check_type, has_any, is_pure_tensor
  from torchvision.utils import _log_api_usage_once
  from .functional._utils import _get_kernel
label_desc: Use image node_id 9 for calling the Transform obj's underlying member method code with example usage: obj.__init_subclass__(cls) without return types