code: def test_set_attr():
      from deepchem.utils.attribute_utils import set_attr
  
      class MyClass:
          def __init__(self):
              self.a = 1
              self.b = 2
  
      obj = MyClass()
      set_attr(obj, "a", 3)
      set_attr(obj, "c", 4)
      assert obj.a == 3
      assert obj.c == 4
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_set_attr() without return types