code: def GetTestCases(tests):
      """Returns a list of test cases in the given full test names.
  
      Args:
        tests: a list of full test names
  
      Returns:
        A list of test cases from 'tests', in their original order.
        Consecutive duplicates are removed.
      """
  
      test_cases = []
      for test in tests:
          test_case = test.split(".")[0]
          if not test_case in test_cases:
              test_cases.append(test_case)
  
      return test_cases
  
imports: import os
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 8 for calling a global function with example usage: GetTestCases(tests) and returns: test_cases