code: def _setup_cpu_environment() -> None:
      """Set configuration for the CPU environment based on environment variable."""
      inter_op_parallel_threads = os.getenv(ENV_CPU_INTER_OP_CONFIG)
      intra_op_parallel_threads = os.getenv(ENV_CPU_INTRA_OP_CONFIG)
  
      if (
          not inter_op_parallel_threads
          and not intra_op_parallel_threads
      ):
          return
  
      from tensorflow import config as tf_config
  
      if inter_op_parallel_threads:
          try:
              inter_op_parallel_threads_number = int(
                  inter_op_parallel_threads.strip()
              )
          except ValueError:
              raise ValueError(
                  f"Error parsing the environment variable '{ENV_CPU_INTER_OP_CONFIG}'. "
                  f"Please cross-check the value."
              )
  
          tf_config.threading.set_inter_op_parallelism_threads(
              inter_op_parallel_threads_number
          )
  
      if intra_op_parallel_threads:
          try:
              intra_op_parallel_threads_number = int(
                  intra_op_parallel_threads.strip()
              )
          except ValueError:
              raise ValueError(
                  f"Error parsing the environment variable '{ENV_CPU_INTRA_OP_CONFIG}'. "
                  f"Please cross-check the value."
              )
  
          tf_config.threading.set_intra_op_parallelism_threads(
              intra_op_parallel_threads_number
          )
  
file_path: rasa/rasa/utils/tensorflow/environment.py
imports: import logging
  import os
  from typing import Text, Dict
  import typing
  import rasa.shared.utils.io
  from rasa.constants import ENV_GPU_CONFIG, ENV_CPU_INTER_OP_CONFIG, ENV_CPU_INTRA_OP_CONFIG
  from rasa.utils.tensorflow.constants import TF_DETERMINISTIC_OPS
  from rasa.shared.utils import io
label_desc: Use image node_id 4 for calling a global function with example usage: _setup_cpu_environment() without return types