def _fix_opts_abfs(cls, path, opts: dict):
    try:
        from drfs.filesystems.azure_blob import AzureBlobFileSystem, extract_abfs_parts
    except ImportError:
        AzureBlobFileSystem = extract_abfs_parts = None
    if ((AzureBlobFileSystem is not None) and (cls is AzureBlobFileSystem) and ('account_name' not in opts)):
        opts = opts.copy()
        opts['account_name'] = extract_abfs_parts(path)[0]
    return opts
def _fix_opts_abfs(cls, path, opts: dict):
    try:
        from drfs.filesystems.azure_blob import AzureBlobFileSystem, extract_abfs_parts
    except ImportError:
        AzureBlobFileSystem = extract_abfs_parts = None
    if ((AzureBlobFileSystem is not None) and (cls is AzureBlobFileSystem) and ('account_name' not in opts)):
        opts = opts.copy()
        opts['account_name'] = extract_abfs_parts(path)[0]
    return opts