code: def testOutput(self):
      (output, leaky_tests) = GetNormalizedCommandOutputAndLeakyTests(
          COMMAND
      )
      golden_file = open(GOLDEN_PATH, "rb")
      golden = golden_file.read().decode("utf-8")
      golden_file.close()
      # On Windows the repository might have been checked out with \r\n line
      # endings, so normalize it here.
      golden = ToUnixLineEnding(golden)
  
      # The normalized output should match the golden file.
      self.assertEqual(golden, output)
  
      # The raw output should contain 2 leaked mock object errors for
      # test GMockOutputTest.CatchesLeakedMocks.
      self.assertEqual(
          [
              "GMockOutputTest.CatchesLeakedMocks",
              "GMockOutputTest.CatchesLeakedMocks",
          ],
          leaky_tests,
      )
  
file_path: 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 1 for calling the GMockOutputTest obj's underlying member method code with example usage: obj.testOutput() without return types