code: def _filter_check_patterns(
      patterns: Iterable[Pattern],
  ) -> List[Tuple[int, Pattern]]:
      """
      Filters out null-patterns.
  
      *patterns* (:class:`Iterable` of :class:`.Pattern`) contains the
      patterns.
  
      Returns a :class:`list` containing each indexed pattern (:class:`tuple`) which
      contains the pattern index (:class:`int`) and the actual pattern
      (:class:`~pathspec.pattern.Pattern`).
      """
      return [
          (__index, __pat)
          for __index, __pat in enumerate(patterns)
          if __pat.include is not None
      ]
  
imports: import os
  import os.path
  import pathlib
  import posixpath
  import stat
  import sys
  import warnings
  from collections.abc import Collection, Iterable
  from dataclasses import dataclass
  from os import PathLike
  from typing import Any, AnyStr, Callable, Collection, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Set, Tuple, TypeVar, Union
  from .pattern import Pattern
label_desc: Use image node_id 4 for calling a global function with example usage: _filter_check_patterns(patterns) and returns: unknown