code: def test_visibility_graph_cyclic_series():
      series = list(
          itertools.islice(itertools.cycle((2, 1, 3)), 17)
      )  # It's so bumpy!
      expected_node_count = len(series)
  
      actual_graph = nx.visibility_graph(series)
  
      assert actual_graph.number_of_nodes() == expected_node_count
      assert actual_graph.number_of_edges() == 25
  
file_path: networkx/networkx/generators/tests/test_time_series.py
imports: import itertools
  import networkx
label_desc: Use image node_id 7 for calling a global function with example usage: test_visibility_graph_cyclic_series() without return types