code: def _coerce_filenames(filenames):
      if isinstance(filenames, (str, bytes, pathlib.PurePath)):
          filenames = [filenames]
      return list(map(os.fspath, filenames))
  
imports: import os
  import pathlib
  import sys
  from contextlib import contextmanager
  from functools import partialmethod
  from dvc.utils import serialize
label_desc: Use image node_id 2 for calling a global function with example usage: _coerce_filenames(filenames) and returns: list