code: def _ignore_filename_spell_check(src: Path):
      possible_spelling_mistakes = [
          ".gridignore",
          ".lightingignore",
          ".lightinginore",
          ".lightninginore",
          ".lightninignore",
          ".lightinignore",
      ]
      possible_spelling_mistakes.extend(
          [p.lstrip(".") for p in possible_spelling_mistakes]
      )
      for path in src.iterdir():
          if path.is_file() and path.name in possible_spelling_mistakes:
              logger.warn(
                  f"Lightning uses `{DOT_IGNORE_FILENAME}` as the ignore file but found {path.name} at "
                  f"{path.parent} instead. If this was a mistake, please rename the file."
              )
  
file_path: pytorch-lightning/src/lightning/app/source_code/copytree.py
imports: import fnmatch
  import os
  from functools import partial
  from pathlib import Path
  from shutil import Error, copy2, copystat
  from typing import Callable, List, Optional, Set, Tuple, Union
  from lightning.app.core.constants import DOT_IGNORE_FILENAME
  from lightning.app.utilities.app_helpers import Logger
label_desc: Use image node_id 5 for calling a global function with example usage: _ignore_filename_spell_check(src) without return types