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