code: def test_bad_flow(barbell):
      generator = AdjacencyPowerGenerator(barbell, num_powers=5)
  
      with pytest.raises(
          ValueError, match="batch_size: expected.*found 0"
      ):
          generator.flow(0, num_parallel_calls=1)
  
      with pytest.raises(
          TypeError, match="batch_size: expected.*found float"
      ):
          generator.flow(1.0, num_parallel_calls=1)
  
      with pytest.raises(
          ValueError, match="num_parallel_calls: expected.*found 0"
      ):
          generator.flow(1, num_parallel_calls=0)
  
      with pytest.raises(
          TypeError, match="num_parallel_calls: expected.*found float"
      ):
          generator.flow(1, num_parallel_calls=1.01)
  
file_path: stellargraph/tests/mapper/test_adjacency_generators.py
imports: from stellargraph.core.utils import normalize_adj
  from stellargraph.mapper.adjacency_generators import AdjacencyPowerGenerator
  from ..test_utils.graphs import barbell
  import tensorflow
  import numpy
  import pytest
label_desc: Use image node_id 4 for calling a global function with example usage: test_bad_flow(barbell) without return types