code: def setup_class(cls):
      global np
      import pytest
  
      np = pytest.importorskip("numpy")
  
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestAverageShortestPathLengthNumpy obj's underlying member method code with example usage: obj.setup_class(cls) without return types