code: def _generate_heterodata_nodes(
      data: HeteroData,
  ) -> Generator[Tuple[NodeType, str, torch.Tensor], None, None]:
      for node_type, store in data.node_items():
          for attr in store.keys():
              yield node_type, attr
  
imports: import numbers
  from typing import Dict, Generator, List, Optional, Tuple, Union
  import pytest
  import torch
  from torch_geometric.data import Data, HeteroData
  from torch_geometric.datasets import FakeDataset, FakeHeteroDataset
  from torch_geometric.transforms import Pad
  from torch_geometric.transforms.pad import AttrNamePadding, EdgeTypePadding, NodeTypePadding, Padding, UniformPadding
  from torch_geometric.typing import EdgeType, NodeType
label_desc: Use image node_id 5 for calling a global function with example usage: _generate_heterodata_nodes(data) without return types