code: def RunWithSharding(total_shards, shard_index, command):
      """Runs a test program shard and returns exit code and a list of tests run."""
  
      extra_env = {
          SHARD_INDEX_ENV_VAR: str(shard_index),
          TOTAL_SHARDS_ENV_VAR: str(total_shards),
      }
      return InvokeWithModifiedEnv(
          extra_env, RunAndExtractTestList, command
      )
  
imports: import os
  import re
  import sys
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 6 for calling a global function with example usage: RunWithSharding(total_shards, shard_index, command) and returns: InvokeWithModifiedEnv