code: def test_generator_flow_incorrect_targets():
      generator = PaddedGraphGenerator(graphs=graphs)
  
      with pytest.raises(
          ValueError,
          match="expected targets to be the same length as node_ids,.*1 vs 2",
      ):
          generator.flow(graphs=[0, 1], targets=np.array([0]))
  
      with pytest.raises(
          TypeError,
          match="targets: expected an iterable or None object, found int",
      ):
          generator.flow(graphs=[0, 1], targets=1)
  
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 8 for calling a global function with example usage: test_generator_flow_incorrect_targets() without return types