code: def optimizer_tensor(self) -> Union[tf.Tensor, tf.Operation]:
          
          return _get_attr(self, _optimizer_tensor=None)
docs: The `optimizer_tensor` is an attribute for getting optimization's
          optimizer tensor.