def METHOD_NAME():
    m = ConcreteModel()
    # Need a Var to use in the Expression to avoid being able to set the value
    # of a float
    m.v = Var(initialize=42)
    m.e = VarLikeExpression(expr=m.v)
    assert m.e.ctype is Expression
    assert not m.e.is_indexed()
    with pytest.raises(
        TypeError,
        match="e is an Expression and does not have a value "
        "attribute. Use the 'value\(\)' method instead.",
    ):
        assert m.e.value == 42
    with pytest.raises(
        TypeError,
        match="e is an Expression and does not have a value " "which can be set.",
    ):
        m.e.set_value(10)
    with pytest.raises(
        TypeError,
        match="e is an Expression and does not have a value " "which can be set.",
    ):
        m.e.value = 10
    with pytest.raises(
        TypeError,
        match="e is an Expression and can not have bounds. "
        "Use an inequality Constraint instead.",
    ):
        m.e.setub(10)
    with pytest.raises(
        TypeError,
        match="e is an Expression and can not have bounds. "
        "Use an inequality Constraint instead.",
    ):
        m.e.setlb(0)
    with pytest.raises(
        TypeError,
        match="e is an Expression and can not be fixed. "
        "Use an equality Constraint instead.",
    ):
        m.e.fix(8)
    with pytest.raises(TypeError, match="e is an Expression and can not be unfixed."):
        m.e.unfix()
    m.e.set_value(10, force=True)
    assert m.e.expr == 10