code: def test_generator_different_feature_numbers():
      graphs_diff_num_features = [
          example_graph_random(feature_size=2, n_nodes=6),
          example_graph_random(feature_size=4, n_nodes=5),
      ]
  
      with pytest.raises(
          ValueError,
          match="graphs: expected node features for all graph to have same dimensions,.*2.*4",
      ):
          generator = PaddedGraphGenerator(
              graphs=graphs_diff_num_features
          )
  
      generator = PaddedGraphGenerator(
          graphs=graphs_diff_num_features[:1]
      )
      with pytest.raises(
          ValueError,
          match="graphs: expected node features for all graph to have same dimensions,.*2.*4",
      ):
          seq = generator.flow(graphs_diff_num_features)
  
imports: from stellargraph.core.graph import *
  from stellargraph.mapper.padded_graph_generator import PaddedGraphGenerator, PaddedGraphSequence
  import numpy
  import pytest
  from ..test_utils.graphs import example_graph_random, example_graph, example_hin_1
label_desc: Use image node_id 3 for calling a global function with example usage: test_generator_different_feature_numbers() without return types