code: def test_specified_methods_numpy(self):
      G = nx.Graph()
      nx.add_cycle(G, range(7), weight=2)
      ans = nx.average_shortest_path_length(
          G, weight="weight", method="floyd-warshall-numpy"
      )
      np.testing.assert_almost_equal(ans, 4)
  
      G = nx.Graph()
      nx.add_path(G, range(5), weight=2)
      ans = nx.average_shortest_path_length(
          G, weight="weight", method="floyd-warshall-numpy"
      )
      np.testing.assert_almost_equal(ans, 4)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 2 for calling the TestAverageShortestPathLengthNumpy obj's underlying member method code with example usage: obj.test_specified_methods_numpy() without return types