def METHOD_NAME(openPMD_dims):
    """Converts a collection of OpenPMD dimensions to astropy.units."""
    units = u.dimensionless_unscaled
    for factor, unit in zip(openPMD_dims, _UNITS):
        units *= unit**factor
    units, *_ = units.compose()
    return units