class_docstr: Tests the env variable or the command line flag to filter tests.
docstr: Tests that the shard file is created if specified in the environment.
code: def testShardStatusFileIsCreated(self):
      """Tests that the shard file is created if specified in the environment."""
  
      shard_status_file = os.path.join(
          gtest_test_utils.GetTempDir(), "shard_status_file"
      )
      self.assertTrue(not os.path.exists(shard_status_file))
  
      extra_env = {SHARD_STATUS_FILE_ENV_VAR: shard_status_file}
      try:
          InvokeWithModifiedEnv(extra_env, RunAndReturnOutput)
      finally:
          self.assertTrue(os.path.exists(shard_status_file))
          os.remove(shard_status_file)
  
imports: import os
  import re
  import sys
  from googletest.test import gtest_test_utils
label_desc: Use image node_id 24 for calling the GTestFilterUnitTest obj's underlying member method code with example usage: obj.testShardStatusFileIsCreated() without return types