<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _calc_cost(self, *args, **kwargs):
 """Calculate the cost This method calculates the cost from each of the input operators Returns ------- float cost """


        return np.sum([op.cost(*args, **kwargs) for op in self._operators])