def METHOD_NAME(mem: str, data):
    """Returns data width of mem in bytes"""
    assert mem in data, "mem must be a key in data"
    width = data[mem]["format"]["width"] // 8
    if data[mem]["format"]["width"] % 8 != 0:
        width += 1
    return width