code: @Nullable
    public static ValueAnimator createValueAnimator(Drawable drawable, int maxDurationMs) {
      if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {
        return null;
      }
  
      if (drawable instanceof AnimatedDrawable2) {
        return AnimatedDrawable2ValueAnimatorHelper.createValueAnimator(
            (AnimatedDrawable2) drawable,
            maxDurationMs);
      }
      return null;
    }
docs: Create a value animator for the given animation drawable and max animation duration in ms.
  
  @param drawable the drawable to create the animator for
  @param maxDurationMs the max duration in ms
  @return the animator to use