code: def _git_repos(paths):
      for path in paths:
          for root, dirs, _ in os.walk(path):
              if any(d == ".git" for d in dirs):
                  yield root
  
file_path: datalad/datalad/local/check_dates.py
imports: import json
  import logging
  import os
  import time
  from datalad.interface.base import Interface
  from datalad.interface.base import build_doc
  from datalad.interface.results import get_status_dict
  from datalad.support.exceptions import CapturedException, InvalidGitRepositoryError, MissingExternalDependency
label_desc: Use image node_id 1 for calling a global function with example usage: _git_repos(paths) without return types