code: def tokenize_folder(
      path,
      extensions=None,
      folders=None,
      output_dir=None,
      skip_if_exists=True,
      **kwargs,
  ):
      "Tokenize text files in `path` in parallel using `n_workers`"
      path, extensions = Path(path), ifnone(extensions, [".txt"])
      files = get_files(
          path, extensions=extensions, recurse=True, folders=folders
      )
  
      def _f(i, output_dir):
          return output_dir / files[i].relative_to(path)
  
      return _tokenize_files(
          _f, files, path, skip_if_exists=skip_if_exists, **kwargs
      )
  
imports: from __future__ import annotations
  from ..torch_basics import *
  from ..data.all import *
  import html
label_desc: Use image node_id 13 for calling a global function with example usage: tokenize_folder(path, extensions, folders, output_dir, skip_if_exists) and returns: _tokenize_files, unknown