class_docstr: Fast file completer class.
code: def __call__(self, prefix: str, **kwargs: Any) -> List[str]:
      # Only called on non option completions.
      if os.sep in prefix[1:]:
          prefix_dir = len(os.path.dirname(prefix) + os.sep)
      else:
          prefix_dir = 0
      completion = []
      globbed = []
      if "*" not in prefix and "?" not in prefix:
          # We are on unix, otherwise no bash.
          if not prefix or prefix[-1] == os.sep:
              globbed.extend(glob(prefix + ".*"))
          prefix += "*"
      globbed.extend(glob(prefix))
      for x in sorted(globbed):
          if os.path.isdir(x):
              x += "/"
          # Append stripping the prefix (like bash, not like compgen).
          completion.append(x[prefix_dir:])
      return completion
  
file_path: catboost/contrib/python/pytest/py3/_pytest/_argcomplete.py
imports: import argparse
  import os
  import sys
  from glob import glob
  from typing import Any
  from typing import List
  from typing import Optional
label_desc: Use image node_id 2 for calling the FastFilesCompleter obj's underlying member method code with example usage: obj.__call__(prefix) and returns: completion