code: def test_flow(barbell):
      generator = AdjacencyPowerGenerator(barbell, num_powers=5)
      dataset = generator.flow(batch_size=1)
      assert tf.data.experimental.cardinality(dataset).numpy() == -1
  
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 3 for calling a global function with example usage: test_flow(barbell) without return types