code: def testAllreduceWithEightGPUs(self):
      pattern = workspace.GetGpuPeerAccessPattern()
      if (
          pattern.shape[0] >= 8
          and np.all(pattern[:4, :4])
          and np.all(pattern[4:, 4:])
      ):
          self.RunningAllreduceWithGPUs(list(range(8)), muji.Allreduce8)
      else:
          print(
              "Skipping allreduce with 8 gpus. Not peer access ready."
          )
  
file_path: pytorch/caffe2/python/muji_test.py
imports: import numpy
  import unittest
  from caffe2.python import core, workspace, muji, test_util
label_desc: Use image node_id 7 for calling the TestMuji obj's underlying member method code with example usage: obj.testAllreduceWithEightGPUs() without return types