code: def _is_number(num):
      pattern = re.compile(r"^[-+]?[-0-9]\d*\.\d*|[-+]?\.?[0-9]\d*$")
      result = pattern.match(num)
      if result:
          return True
      else:
          return False
  
file_path: PaddleOCR/benchmark/analysis.py
imports: from __future__ import print_function
  import argparse
  import json
  import os
  import re
  import traceback
label_desc: Use image node_id 2 for calling a global function with example usage: _is_number(num) and returns: True, False