code: def from_dict(
      transform_dict: Dict[str, Any],
      nonserializable: Optional[Dict[str, Any]] = None,
      lambda_transforms: Union[
          Optional[Dict[str, Any]], str
      ] = "deprecated",
  ) -> Optional[Serializable]:
      """
      Args:
          transform_dict (dict): A dictionary with serialized transform pipeline.
          nonserializable (dict): A dictionary that contains non-serializable transforms.
              This dictionary is required when you are restoring a pipeline that contains non-serializable transforms.
              Keys in that dictionary should be named same as `name` arguments in respective transforms from
              a serialized pipeline.
          lambda_transforms (dict): Deprecated. Use 'nonserizalizable' instead.
      """
      if lambda_transforms != "deprecated":
          warnings.warn(
              "lambda_transforms argument is deprecated, please use 'nonserializable'",
              DeprecationWarning,
          )
          nonserializable = typing.cast(
              Optional[Dict[str, Any]], lambda_transforms
          )
  
      register_additional_transforms()
      transform = transform_dict["transform"]
      lmbd = instantiate_nonserializable(transform, nonserializable)
      if lmbd:
          return lmbd
      name = transform["__class_fullname__"]
      args = {
          k: v
          for k, v in transform.items()
          if k != "__class_fullname__"
      }
      cls = SERIALIZABLE_REGISTRY[shorten_class_name(name)]
      if "transforms" in args:
          args["transforms"] = [
              from_dict(
                  {"transform": t}, nonserializable=nonserializable
              )
              for t in args["transforms"]
          ]
      return cls(**args)
  
imports: from __future__ import absolute_import
  import json
  import typing
  import warnings
  from abc import ABC, ABCMeta, abstractmethod
  from typing import IO, Any, Callable, Dict, Optional, Tuple, Type, Union
  from albumentations import __version__
label_desc: Use image node_id 5 for calling a global function with example usage: from_dict(transform_dict, nonserializable, lambda_transforms) and returns: cls, lmbd