code: def _method_complete(self, result):
      
      if isinstance(result, (PrettyTensor, Loss, PrettyTensorTupleMixin)):
        return result
      elif (isinstance(result, collections.Sequence) and
            not isinstance(result, six.string_types)):
        return self.with_sequence(result)
      else:
        return self.with_tensor(result)
docs: Called after a registered method with the result.