code: def _expand_paths_itr(paths, marker='*'):
      
      for path in paths:
          if is_path(path):
              if marker in path:  # glob path pattern
                  for ppath in sglob(path):
                      yield ppath
              else:
                  yield path  # a simple file path
          elif is_path_obj(path):
              if marker in path.as_posix():
                  for ppath in sglob(path.as_posix()):
                      yield normpath(ppath)
              else:
                  yield normpath(path.as_posix())
          elif is_ioinfo(path):
              yield path.path
          else:  # A file or file-like object
              yield path
docs: Iterator version of :func:`expand_paths`.