code: def check_installed_framework():
      def check(installed_framework):
          try:
              fliud_installed = False
              paddle_installed = False
              import paddle
              from paddle import fluid
  
              paddle_version = get_fluid_version()
              if paddle_version < 200 and paddle_version != 0:
                  assert (
                      paddle_version >= 185
                  ), "PARL requires paddle >= 1.8.5 for paddle < 2.0.0"
                  fluid_installed = True
              else:
                  paddle_installed = True
          except ImportError as e:
              fluid_installed = False
              paddle_installed = False
          except:
              logger.warning(
                  "Failed to import PaddlePaddle, please check the PaddlePaddle installed in your environment"
              )
              fluid_installed = False
              paddle_installed = False
  
          try:
              import torch
  
              torch_installed = True
          except ImportError:
              torch_installed = False
          except:
              logger.warning(
                  "Failed to import torch, please check the torch installed in your environment"
              )
              torch_installed = False
  
          installed_framework["_HAS_FLUID"] = fliud_installed
          installed_framework["_HAS_PADDLE"] = paddle_installed
          installed_framework["_HAS_TORCH"] = torch_installed
  
      mp.set_start_method("fork")
      manager = mp.Manager()
      installed_framework = manager.dict()
      process = mp.Process(target=check, args=(installed_framework,))
      process.start()
      process.join()
      global _HAS_FLUID, _HAS_PADDLE, _HAS_TORCH
      _HAS_FLUID = installed_framework["_HAS_FLUID"]
      _HAS_PADDLE = installed_framework["_HAS_PADDLE"]
      _HAS_TORCH = installed_framework["_HAS_TORCH"]
      del manager, installed_framework
  
file_path: PARL/parl/utils/utils.py
imports: import os
  import subprocess
  import sys
  import multiprocessing
  import numpy
  from parl.utils import logger
label_desc: Use image node_id 6 for calling a global function with example usage: check_installed_framework() without return types