code: def get_mock_module(config):
      """
      Import and return the actual "mock" module. By default, this is
      "unittest.mock", but the user can force to always use "mock" using
      the mock_use_standalone_module ini option.
      """
      global _mock_module
      if _mock_module is None:
          try:
              use_standalone_module = parse_ini_boolean(
                  config.getini("mock_use_standalone_module")
              )
          except ValueError:
              use_standalone_module = False
          if use_standalone_module:
              import mock
  
              _mock_module = mock
          else:
              import unittest.mock
  
              _mock_module = unittest.mock
  
      return _mock_module
  
file_path: wandb/tests/pytest_tests/unit_tests_old/utils/utils.py
imports: import io
  import os
  import shutil
  import socket
  from typing import Union
label_desc: Use image node_id 1 for calling a global function with example usage: get_mock_module(config) and returns: _mock_module