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 _transform(self, inpt: Any, params: Dict[str, Any]) -> Any:
      if isinstance(inpt, self.types):
          return self.lambd(inpt)
      else:
          return inpt
  
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 2 for calling the Lambda obj's underlying member method code with example usage: obj._transform(inpt, params) and returns: self, inpt