def METHOD_NAME(a: T, b: T) -> None:
    """Raise an AssertionError if two objects are not identical.
    For Scipp objects, ``assert_identical(a, b)`` is equivalent to
    ``assert sc.identical(a, b, equal_nan=True)`` but produces a more precise
    error message in pytest.
    If this function is called with arguments that are not supported by
    :func:`scipp.identical`, it calls ``assert a == b``.
    This function requires exact equality including equal types.
    For example, ``assert_identical(1, 1.0)`` will raise.
    NaN elements of Scipp variables are treated as equal.
    Parameters
    ----------
    a:
        The actual object to check.
    b:
        The desired, expected object.
    Raises
    ------
    AssertionError
        If the objects are not identical.
    """
    try:
        _assert_identical_impl(a, b)
    except AssertionError as exc:
        if hasattr(exc, '__notes__'):
            # See comment above.
            notes = []
            rest = -1
            for i, note in enumerate(exc.__notes__):
                if 'PREPOSITION' in note:
                    notes.append(note.replace('PREPOSITION', 'in'))
                    rest = i
                    break
            notes.extend(
                note.replace('PREPOSITION', 'of') for note in exc.__notes__[rest + 1 :]
            )
            exc.__notes__ = notes
        raise