code: def test_discovery_from_dotted_path(self):
      loader = unittest.TestLoader()
  
      tests = [self]
      expectedPath = os.path.abspath(
          os.path.dirname(test.test_unittest.__file__)
      )
  
      self.wasRun = False
  
      def _find_tests(start_dir, pattern):
          self.wasRun = True
          self.assertEqual(start_dir, expectedPath)
          return tests
  
      loader._find_tests = _find_tests
      suite = loader.discover("test.test_unittest")
      self.assertTrue(self.wasRun)
      self.assertEqual(suite._tests, tests)
  
imports: import os.path
  from os.path import abspath
  import re
  import sys
  import types
  import pickle
  from test import support
  from test.support import import_helper
  import unittest
  import unittest.mock
  import test.test_unittest
label_desc: Use image node_id 24 for calling the TestDiscovery obj's underlying member method code with example usage: obj.test_discovery_from_dotted_path() and returns: tests