def METHOD_NAME(self, retry_policy):
    """Inherit backoff parameters from another retry policy.
    :param retry_policy: The retry policy to inherit from.
    :return: An instance of ExponentialBackoffRetryPolicy with inherited parameters.
    :raise ValueError: If the strategy of the retry policy is not ExponentialBackoff.
    """
    if retry_policy.strategy_case != "ExponentialBackoff":
        raise ValueError("Strategy must be exponential backoff")
    return self._inherit_backoff(retry_policy.exponential_backoff)