code: def check_error_file(file_check):
      """
      Function to check if file exist
  
      :param file_check: File to check
      :type file_check: str
  
      """
  
      try:
          open(file_check)
      except TypeError:
          raise TypeError(
              "File cannot be empty or file is invalid: "
              + str(file_check)
          )
  
file_path: CaseRecommender/caserec/utils/extra_functions.py
imports: import sys
  import time
label_desc: Use image node_id 1 for calling a global function with example usage: check_error_file(file_check) without return types