code: def log_walk(seq):
      for root, dirs, files in seq:
          start = time.perf_counter()
          yield root, dirs, files
          duration = format_time(time.perf_counter() - start)
          logger.trace(
              "%s in collecting stages from %s", duration, root
          )
  
imports: import logging
  import time
  from collections import defaultdict
  from functools import partial
  from itertools import chain
  from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, Iterator, List, NamedTuple, Optional, Set, Tuple, Union
  from funcy.debug import format_time
  from dvc.dependency import ParamsDependency
  from dvc.fs import LocalFileSystem
  from dvc.fs.callbacks import DEFAULT_CALLBACK
  from dvc.log import logger
  from dvc.utils.objects import cached_property
label_desc: Use image node_id 1 for calling a global function with example usage: log_walk(seq) without return types