code: def get_tesseract_dim_dep_from_env():
      try:
          tesseract_dim = env.tesseract_dim
          tesseract_dep = env.tesseract_dep
          assert (
              tesseract_dim > 0
          ), "TESSERACT_DIM must be larger than zero"
          assert (
              tesseract_dep > 0
          ), "TESSERACT_DEP must be larger than zero"
          return tesseract_dim, tesseract_dep
  
      except KeyError:
          raise EnvironmentError(
              "TESSERACT_DIM or TESSERACT_DEP is not found in the current environment, "
              "please make sure that you have used the correct process group initializer"
          )
  
imports: from colossalai.legacy.context.parallel_mode import ParallelMode
  from colossalai.legacy.core import global_context
  from colossalai.legacy.global_variables import tensor_parallel_env
label_desc: Use image node_id 1 for calling a global function with example usage: get_tesseract_dim_dep_from_env() and returns: tesseract_dim,  tesseract_dep