def METHOD_NAME(outputs, expected_outputs):
    outputs = outputs["outputs"]
    if isinstance(outputs, dict):
        for key in outputs:
            return array_equal(outputs[key], expected_outputs[key])
    elif isinstance(outputs, np.ndarray):
        return array_equal(outputs, expected_outputs)