code: def print_error(errors, log_path):
      if not isinstance(errors, list):
          errors = [errors]
      errors = [
          error if isinstance(error, bytes) else error.encode("utf-8")
          for error in errors
      ]
      url = "https://github.com/JaidedAI/EasyOCR/tree/master/easyocr/DBNet"
      print("Failed to compile dcn operator for DBNet.")
      with open(log_path, "wb") as fid:
          fid.write(
              (
                  datetime.now().strftime("%H:%M:%S - %d %b %Y") + "\n"
              ).encode("utf-8")
          )
          fid.write(
              "Failed to compile dcn operator for DBNet with the following error.\n".encode(
                  "utf-8"
              )
          )
          fid.write(("#" * 42 + "\n").encode("utf-8"))
          [fid.write(error) for error in errors]
      print(
          "Error message can be found in {}.".format(
              os.path.abspath(log_path)
          )
      )
      print("#" * 42)
      print(
          "EasyOCR can still be used with CRAFT text detector (default)."
      )
      print(
          "To use DBNet text detector, please check {} for troubleshoot and compile dcn operator manually.".format(
              url
          )
      )
  
imports: import os
  import glob
  from datetime import datetime
  import subprocess
label_desc: Use image node_id 1 for calling a global function with example usage: print_error(errors, log_path) without return types