class_docstr: Serializable class that applies a transform to a key specified field in samples.
class_docstr_tok: ["Serializable","class","that","applies","a","transform","to","a","key","specified","field","in","samples","."]
code: def from_config(cls, config: Dict[str, Any]):
      transform = build_transforms(config["transforms"])
  
      return cls(transform=transform, key=config["key"])
  
imports: import collections
  from typing import Any, Callable, Dict, List, Optional, Tuple, Union
  import torchvision.transforms
  from .None import build_transforms, ClassyTransform, register_transform
label_desc: Use image node_id 2 for calling the ApplyTransformToKey obj's underlying member method code with example usage: obj.from_config(cls, config) and returns: cls