code: def get_api_symbols(self):
      regex = re.compile(rf"^\s*int\s+({self.MPINAME})\s*\(")
      api_symbols = set()
      with open(pxd_file) as fh:
          for line in fh:
              match = regex.search(line)
              if match:
                  sym = match.groups()[0]
                  api_symbols.add(sym)
      return api_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 1 for calling the TestMPIAPI obj's underlying member method code with example usage: obj.get_api_symbols() and returns: api_symbols