def METHOD_NAME(db, lcia=False):
    """Normalize biosphere flow names to ecoinvent 3.1 standard in the given database.
    Assumes that each dataset and each exchange have a ``name``. Will change names even if exchange is already linked.
    Parameters
    ----------
    db : list
        A list of datasets, each containing exchanges.
    lcia : bool, optional
        If True, only normalize biosphere flow names in LCIA datasets. Default is False.
    Returns
    ----------
    list
        A modified list of datasets with normalized biosphere flow names.
    Examples
    ----------
    >>> db = [{"name": "old_biosphere_name"}]
    >>> new_db = normalize_biosphere_names(db)
    >>> new_db
    [{"name": "new_biosphere_name"}]
    """
    db = migrate_exchanges(db, migration="biosphere-2-3-names")
    if not lcia:
        db = migrate_datasets(db, migration="biosphere-2-3-names")
    return db