code: def test_visibility_graph__flat_series__path_graph():
      series = [0] * 10  # living in 1D flatland
      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() == expected_node_count - 1
      assert nx.is_isomorphic(
          actual_graph, nx.path_graph(expected_node_count)
      )
  
file_path: networkx/networkx/generators/tests/test_time_series.py
imports: import itertools
  import networkx
label_desc: Use image node_id 6 for calling a global function with example usage: test_visibility_graph__flat_series__path_graph() without return types