code: def get_pretty_env_info(branch_name):
      global env_info_fmt
      global cuda_info_fmt
      global npm_info_fmt
      populate_env_info()
      env_dict = {
          **torchserve_env,
          **python_env,
          **java_env,
          **os_info,
          "torchserve_branch": branch_name,
      }
  
      if TORCH_AVAILABLE and torch.cuda.is_available():
          env_dict.update(cuda_env)
          env_info_fmt = env_info_fmt + "\n" + cuda_info_fmt
  
      if get_platform() == "darwin":
          env_dict.update(npm_env)
          env_info_fmt = env_info_fmt + "\n" + npm_info_fmt
  
      return env_info_fmt.format(**env_dict)
  
imports: import locale
  import os
  import re
  import subprocess
  import sys
label_desc: Use image node_id 30 for calling a global function with example usage: get_pretty_env_info(branch_name) and returns: env_info_fmt