code: def test_child_thread_inherits_env():
      """A new thread inherit's the main thread's env"""
  
      def func():
          with rio.Env(lol="wut"):
              assert get_gdal_config("lol") == "wut"
              # The next config option will have been set in the main thread.
              assert get_gdal_config("FROM_MAIN") is True
  
      t1 = Thread(target=func)
  
      with rio.Env(FROM_MAIN=True):
          t1.start()
          assert get_gdal_config("FROM_MAIN") is True
          assert get_gdal_config("lol") is None
          t1.join()
  
file_path: rasterio/tests/test_threading.py
imports: from threading import Thread
  import time
  import unittest
  import rasterio
  from rasterio.env import get_gdal_config
label_desc: Use image node_id 1 for calling a global function with example usage: test_child_thread_inherits_env() without return types