code: def _parse_lightningignore(lines: Tuple[str]) -> Set[str]:
      """Creates a set that removes empty lines and comments."""
      lines = [ln.strip() for ln in lines]
      # removes first `/` character for posix and `\\` for windows
      lines = [
          ln.lstrip("/").lstrip("\\")
          for ln in lines
          if ln != "" and not ln.startswith("#")
      ]
      # convert to path and converting back to string to sanitize the pattern
      return {str(Path(ln)) for ln in lines}
  
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 3 for calling a global function with example usage: _parse_lightningignore(lines) and returns: unknown