code: def _generate_homodata_edge_attrs(
      data: Data,
  ) -> Generator[str, None, None]:
      for attr in data.keys():
          if data.is_edge_attr(attr):
              yield 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 4 for calling a global function with example usage: _generate_homodata_edge_attrs(data) without return types