class_docstr: Composes several transforms together.
  
  Args:
      transforms (List[Callable]): List of transforms to compose.
class_docstr_tok: ["Composes","several","transforms","together",".","Args",":","transforms","(","List","[","Callable","]",")",":","List","of","transforms","to","compose","."]
code: def forward(
      self,
      data: Union[Data, HeteroData],
  ) -> Union[Data, HeteroData]:
      for transform in self.transforms:
          if isinstance(data, (list, tuple)):
              data = [transform(d) for d in data]
          else:
              data = transform(data)
      return data
  
file_path: pytorch_geometric/torch_geometric/transforms/compose.py
imports: from typing import Callable, List, Union
  from torch_geometric.data import Data, HeteroData
  from torch_geometric.transforms import BaseTransform
label_desc: Use image node_id 2 for calling the Compose obj's underlying member method code with example usage: obj.forward(data) and returns: data