class_docstr: Apply a user-defined function as a transform.
  
  This transform does not support torchscript.
  
  Args:
      lambd (function): Lambda/function to be used for transform.
class_docstr_tok: ["Apply","a","user-defined","function","as","a","transform",".","This","transform","does","not","support","torchscript",".","Args",":","lambd","(","function",")",":","Lambda\/function","to","be","used","for","transform","."]
code: def __init__(self, lambd: Callable[[Any], Any], *types: Type):
      super().__init__()
      self.lambd = lambd
      self.types = types or self._transformed_types
  
imports: import warnings
  from typing import Any, Callable, cast, Dict, List, Optional, Sequence, Type, Union
  import PIL.Image
  import torch
  from torch.utils._pytree import tree_flatten, tree_unflatten
  from torchvision import transforms, tv_tensors
  from torchvision.transforms.v2 import functional, Transform
  from ._utils import _parse_labels_getter, _setup_number_or_seq, _setup_size, get_bounding_boxes, has_any, is_pure_tensor
label_desc: Use image node_id 1 to create a new Lambda object from inherited base classes: Transform with example: obj = Lambda(lambd)