code: def is_path_like_object(obj, marker='*'):
      
      return ((is_path(obj) and marker not in obj) or
              (is_path_obj(obj) and marker not in obj.as_posix()) or
              is_file_stream(obj) or is_ioinfo(obj))
docs: Is given object 'obj' a path string, a pathlib.Path, a file / file-like
      (stream) or IOInfo namedtuple object?
  
      :param obj:
          a path string, pathlib.Path object, a file / file-like or 'IOInfo'
          object
  
      :return:
          True if 'obj' is a path string or a pathlib.Path object or a file
          (stream) object
  
      >>> assert is_path_like_object(__file__)
      >>> assert not is_path_like_object("/a/b/c/*.json", '*')
  
      >>> from anyconfig.compat import pathlib
      >>> if pathlib is not None:
      ...      assert is_path_like_object(pathlib.Path("a.ini"))
      ...      assert not is_path_like_object(pathlib.Path("x.ini"), 'x')
  
      >>> assert is_path_like_object(open(__file__))