code: def testBadAttribute(self):
      error = lambda: mpi4py.rc(ABCXYZ=123456)
      self.assertRaises(TypeError, error)
      error = lambda: setattr(mpi4py.rc, "ABCXYZ", 123456)
      self.assertRaises(TypeError, error)
      error = lambda: getattr(mpi4py.rc, "ABCXYZ")
      self.assertRaises(AttributeError, error)
  
file_path: mpi4py/test/test_toplevel.py
imports: import mpi4py
  import unittest
  import warnings
  import pathlib
  import os
label_desc: Use image node_id 4 for calling the TestRC obj's underlying member method code with example usage: obj.testBadAttribute() without return types