code: def test_check_dates_invalid_repo(path=None):
      with swallow_logs(new_level=logging.WARNING) as cml:
          call(paths=[path])
          cml.assert_logged("Skipping invalid")
  
file_path: datalad/datalad/local/tests/test_check_dates.py
imports: import json
  import logging
  import os
  from functools import partial
  from datalad.api import check_dates
  from datalad.support.annexrepo import AnnexRepo
  from datalad.support.exceptions import IncompleteResultsError
  from datalad.support.tests.test_repodates import set_date
  from datalad.tests.utils_pytest import assert_dict_equal, assert_false, assert_in, assert_raises, eq_, ok_, skip_if_no_module, with_tree
  from datalad.utils import chpwd, swallow_logs, swallow_outputs
label_desc: Use image node_id 1 for calling a global function with example usage: test_check_dates_invalid_repo(path) without return types