code: def __getattr__(cls, name):
      if name in MOCK_CLASSES:
          return object
      return MagicMock()
  
imports: import os
  import sys
  from unittest.mock import MagicMock
label_desc: Use image node_id 1 for calling the Mock obj's underlying member method code with example usage: obj.__getattr__(cls, name) and returns: MagicMock, object