class_docstr: Adapter to enable using ``PyG`` transforms within flash.
  
  Args:
      transform: Transform to apply.
class_docstr_tok: ["Adapter","to","enable","using","``","PyG","``","transforms","within","flash",".","Args",":","transform",":","Transform","to","apply","."]
code: def __call__(self, x: Dict[str, Any]):
      data = x[DataKeys.INPUT]
      data.y = x.get(DataKeys.TARGET, None)
      data = self.transform(data)
      return to_sample((data, data.y))
  
file_path: lightning-flash/src/flash/graph/classification/input_transform.py
imports: from dataclasses import dataclass
  from typing import Any, Callable, Dict
  from flash.core.data.io.input import DataKeys
  from flash.core.data.io.input_transform import InputTransform
  from flash.core.data.utilities.samples import to_sample
  from flash.core.utilities.imports import _TOPIC_GRAPH_AVAILABLE
  from flash.graph.collate import _pyg_collate
label_desc: Use image node_id 1 for calling the PyGTransformAdapter obj's underlying member method code with example usage: obj.__call__(x) and returns: to_sample