def METHOD_NAME(self):
    """Test use of functions with attribute parameters."""
    model = """
        <
            ir_version: 7,
            opset_import: [ "" : 17, "local" : 1]
        >
        agraph (float[N] x) => (y)
        {
            y = local.cast<target=6>(x)
        }
        <
            opset_import: [ "" : 17 ],
            domain: "local"
        >
        cast<target>(x) => (y)
        {
            y = Cast<to:int = @target> (x)
        }
    """
    self._check(model, onnx.TensorProto.INT32)