code: def read_files(
      filepaths: Union[str, bytes, Iterable[_Path]], root_dir=None
  ) -> str:
      """Return the content of the files concatenated using ``\n`` as str
  
      This function is sandboxed and won't reach anything outside ``root_dir``
  
      (By default ``root_dir`` is the current directory).
      """
      from setuptools.extern.more_itertools import always_iterable
  
      root_dir = os.path.abspath(root_dir or os.getcwd())
      _filepaths = (
          os.path.join(root_dir, path)
          for path in always_iterable(filepaths)
      )
      return "\n".join(
          _read_file(path)
          for path in _filter_existing_files(_filepaths)
          if _assert_local(path, root_dir)
      )
  
imports: import ast
  import importlib
  import os
  import pathlib
  import sys
  from glob import iglob
  from configparser import ConfigParser
  from importlib.machinery import ModuleSpec
  from itertools import chain
  from typing import TYPE_CHECKING, Callable, Dict, Iterable, Iterator, List, Mapping, Optional, Tuple, TypeVar, Union, cast
  from pathlib import Path
  from types import ModuleType
  from distutils.errors import DistutilsOptionError
  from .._path import same_path
  from ..warnings import SetuptoolsWarning
label_desc: Use image node_id 2 for calling a global function with example usage: read_files(filepaths, root_dir) and returns: str