code: def _is_correct_path(path: str):
      return os.path.isdir(path) or path.endswith(".py")
  
file_path: vissl/dev/lint_commit.py
imports: import argparse
  import os
  from typing import Iterable, NamedTuple, Sequence
label_desc: Use image node_id 6 for calling a global function with example usage: _is_correct_path(path) and returns: unknown