code: def check_file(file):
      # print(file)
      valid = False
      # only format the default directories
      file_path = str(Path(file).absolute())
      for source_dir in DEFAULT_DIRS:
          source_path = str(Path(source_dir).resolve())
          if file_path.startswith(source_path):
              valid = True
  
      if valid:
          if not check_header(file):
              format_file(file, False, True, False)
              format_file(file, True, False, False)
          format_file(file, False, False, True)
  
file_path: evadb/script/formatting/formatter.py
imports: import argparse
  import functools
  import logging
  import os
  import re
  import subprocess
  import sys
  from pathlib import Path
  import asyncio
  import nbformat
  from nbformat.v4 import new_notebook, new_markdown_cell, new_code_cell
  from pathlib import Path
  import pkg_resources
label_desc: Use image node_id 7 for calling a global function with example usage: check_file(file) without return types