code: def _calc_cost(self, *args, **kwargs):
          
  
          return np.sum([op.cost(*args, **kwargs) for op in self._operators])
docs: Calculate the cost
  
          This method calculates the cost from each of the input operators
  
          Returns
          -------
          float cost