code: def test_spec(self):
      waitable_mock = self._make_mock(spec=Something)
  
      with patch(f"{__name__}.Something", waitable_mock) as m:
          something = m()
  
          self.assertIsInstance(something.method_1, ThreadingMock)
          self.assertIsInstance(
              something.method_1().method_2(), ThreadingMock
          )
  
          with self.assertRaises(AttributeError):
              m.test
  
imports: import time
  import unittest
  import concurrent.futures
  from test.support import threading_helper
  from unittest.mock import patch, ThreadingMock
label_desc: Use image node_id 6 for calling the TestThreadingMock obj's underlying member method code with example usage: obj.test_spec() without return types