<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create(cls, term, *ranges):
 """Instantiate the indexed sum while applying simplification rules"""

        if not isinstance(term, Scalar):
            term = ScalarValue.create(term)
        return super().create(term, *ranges)