code: def _check_tesseract_env_var(tesseract_dim: int, tesseract_dep: int):
      # check global variable for TESSERACT
      env_tesseract_dim = env.tesseract_dim
      env_tesseract_dep = env.tesseract_dep
  
      if env_tesseract_dim and env_tesseract_dep:
          assert int(env_tesseract_dim) == tesseract_dim, (
              "TESSERACT_DIM has been set in the current environment and "
              "does not match with the value passed to this initialized"
          )
          assert int(env_tesseract_dep) == tesseract_dep, (
              "TESSERACT_DEP has been set in the current environment and "
              "does not match with the value passed to this initialized"
          )
      else:
          env.tesseract_dim = tesseract_dim
          env.tesseract_dep = tesseract_dep
  
imports: import math
  import torch.distributed
  from colossalai.context import Config
  from colossalai.legacy.global_variables import tensor_parallel_env
  from colossalai.legacy.registry import DIST_GROUP_INITIALIZER
  from ..parallel_mode import ParallelMode
  from .process_group_initializer import ProcessGroupInitializer
label_desc: Use image node_id 1 for calling a global function with example usage: _check_tesseract_env_var(tesseract_dim, tesseract_dep) without return types