code: def get_mod_symbols(self):
      nm = shutil.which("nm")
      cmd = [nm, "-Pu", mod_file]
      out = sp.check_output(cmd, close_fds=False)
      nm_output = out.decode()
  
      regex = re.compile(rf"^_?({self.MPINAME}) U.*$")
      mod_symbols = set()
      for line in nm_output.split("\n"):
          match = regex.search(line)
          if match:
              sym = match.groups()[0]
              mod_symbols.add(sym)
      return mod_symbols
  
file_path: mpi4py/test/test_mpiapi.py
imports: from mpi4py import MPI
  import mpiunittest
  import os, re
  import subprocess
  import shutil
label_desc: Use image node_id 2 for calling the TestMPIAPI obj's underlying member method code with example usage: obj.get_mod_symbols() and returns: mod_symbols