class_docstr: Allows setting different environment variables in threads.
class_docstr_tok: ["Allows","setting","different","environment","variables","in","threads","."]
code: def __init__(self):
      self.thread_local = threading.local()
      self.initial_env_vars = os.environ.copy()
  
file_path: keras-tuner/keras_tuner/test_utils/mock_distribute.py
imports: import os
  import sys
  import threading
  from unittest import mock
  import portpicker
  import six
label_desc: Use image node_id 1 to create a new MockEnvVars object from inherited base classes: dict with example: obj = MockEnvVars()