class_docstr: Given a list of patterns, create a callable that will be true only if
  the input matches at least one of the patterns.
class_docstr_tok: ["Given","a","list","of","patterns",",","create","a","callable","that","will","be","true","only","if","the","input","matches","at","least","one","of","the","patterns","."]
code: def __call__(self, item: str) -> bool:
      return any(fnmatchcase(item, pat) for pat in self._patterns)
  
imports: import itertools
  import os
  from fnmatch import fnmatchcase
  from glob import glob
  from pathlib import Path
  from typing import TYPE_CHECKING, Dict, Iterable, Iterator, List, Mapping, Optional, Tuple, Union
  import _distutils_hack.override
  from distutils import log
  from distutils.util import convert_path
label_desc: Use image node_id 2 for calling the _Filter obj's underlying member method code with example usage: obj.__call__(item) and returns: any