code: def _recurse_count_files(path):
      return len(
          [os.path.join(r, f) for r, _, fs in os.walk(path) for f in fs]
      )
  
file_path: dvc/tests/func/test_run_cache.py
imports: import os
  import pytest
  from funcy import first
  from dvc.dvcfile import LOCK_FILE
  from dvc.stage.cache import RunCacheNotSupported, _get_stage_hash
  from dvc.utils.fs import remove
label_desc: Use image node_id 1 for calling a global function with example usage: _recurse_count_files(path) and returns: len