def METHOD_NAME(self, input_np, quantize_input_np, input_layout, layout, dtype):
    if dtype == "float16":
        return transform_numpy(input_np, layout.lower(), input_layout)
    if dtype in ("uint8", "int8"):
        return transform_numpy(quantize_input_np, layout.lower(), input_layout)
    raise RuntimeError(f"Unsupported data type '{dtype}'")