code: def test_intra_size_with_env(self):
      if "MV2_COMM_WORLD_LOCAL_SIZE" in os.environ:  # MVAPICH
          expected = int(os.environ["MV2_COMM_WORLD_LOCAL_RANK"])
      elif "OMPI_COMM_WORLD_LOCAL_SIZE" in os.environ:  # OpenMPI
          expected = int(os.environ["OMPI_COMM_WORLD_LOCAL_RANK"])
      else:
          pytest.skip("No MPI specified")
  
      self.assertEqual(self.communicator.intra_rank, expected)
  
file_path: chainer/tests/chainermn_tests/communicator_tests/test_node_aware_communicator_base.py
imports: import collections
  import os
  import unittest
  import mpi4py.MPI
  import pytest
  from chainermn.communicators.mpi_communicator_base import MpiCommunicatorBase
label_desc: Use image node_id 3 for calling the TestMpiCommunicatorBase obj's underlying member method code with example usage: obj.test_intra_size_with_env() without return types