def minimize(self, time, variables, **kwargs):
loss = kwargs["<STR_LIT>"]<EOL>sampled_loss = kwargs["<STR_LIT>"]<EOL>min_op, _ = self.minimize_(loss, sampled_loss, var_list=variables)<EOL>return min_op<EOL>
Performs an optimization step.

Args:
    time: Time tensor. Not used for this
    variables: List of variables to optimize.
    **kwargs: 
        fn_loss : loss function tensor that is differentiated
        sampled_loss : the sampled loss from running the model.

Returns:
    The optimization operation.