code: def check_version(version="2.2"):
      """
      Log error and exit when the installed version of paddlepaddle is
      not satisfied.
      """
      err = (
          "PaddlePaddle version {} or higher is required, "
          "or a suitable develop version is satisfied as well. \n"
          "Please make sure the version is good with your code.".format(
              version
          )
      )
  
      version_installed = [
          paddle_version.major,
          paddle_version.minor,
          paddle_version.patch,
          paddle_version.rc,
      ]
  
      if version_installed == ["0", "0", "0", "0"]:
          return
  
      version_split = version.split(".")
  
      length = min(len(version_installed), len(version_split))
      for i in six.moves.range(length):
          if version_installed[i] > version_split[i]:
              return
          if version_installed[i] < version_split[i]:
              raise Exception(err)
  
file_path: PaddleDetection/ppdet/utils/check.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import sys
  import paddle
  import six
  import paddle.version
  from .logger import setup_logger
label_desc: Use image node_id 5 for calling a global function with example usage: check_version(version) without return types