def METHOD_NAME(uri: str, mode: str = 'r') -> 'FileSystem':
    """Return FileSystem that should be used for the given URI/mode pair.
    Args:
        uri: URI of file
        mode: mode to open file in, 'r' or 'w'
    """
    return registry.METHOD_NAME(uri, mode)