code: def RemoveTestNamesOfLeakedMocks(output):
      """Removes the test names of leaked mock objects from the test output."""
  
      return re.sub(r"\(used in test .+\) ", "", output)
  
file_path: open-asset-importer/contrib/googletest/googlemock/test/gmock_output_test.py
imports: from io import open
  import os
  import re
  import sys
  from googlemock.test import gmock_test_utils
label_desc: Use image node_id 6 for calling a global function with example usage: RemoveTestNamesOfLeakedMocks(output) and returns: re