def METHOD_NAME(self, **kwargs: Any) -> str:
    # This is a poor man's implementation of the proposal in https://github.com/pytorch/pytorch/issues/76532.
    # If that ever gets implemented, remove this in favor of the solution on the `torch.Tensor` class.
    extra_repr = ", ".join(f"{key}={value}" for key, value in kwargs.items())
    return f"{super().__repr__()[:-1]}, {extra_repr})"