<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def scandir(path='.'):
 """ Return an iterator of os.DirEntry objects corresponding to the entries in the directory given by path. The entries are yielded in arbitrary order, and the special entries '.' and '..' are not included. Equivalent to "os.scandir". Args: path (path-like object):
 Path or URL. If path is of type bytes (directly or indirectly through the PathLike interface), the type of the name and path attributes of each os.DirEntry will be bytes; in all other circumstances, they will be of type str. Returns: Generator of os.DirEntry: Entries information. """

    # Handles path-like objects
    scandir_path = fsdecode(path).replace('\\', '/')

    if not is_storage(scandir_path):
        return os_scandir(scandir_path)

    return _scandir_generator(
        is_bytes=isinstance(fspath(path), (bytes, bytearray)),
        scandir_path=scandir_path, system=get_instance(scandir_path))