(function from pyomo.core.expr.template_expr)
pyomo.core.expr.template_expr
A simple substituter to expand expression for current template
This substituter will replace all GetItemExpression / IndexTemplate nodes with the actual _ComponentData based on the current value of the IndexTemplate(s)