@Override
  @Before
  public void setUp() {
    mInstrumentation = InstrumentationRegistry.getInstrumentation();
    mWebpBitmapFactory = new WebpBitmapFactoryImpl();
    ImagePipelineConfig.Builder configBuilder =
        // NULLSAFE_FIXME[Not Vetted Third-Party]
        ImagePipelineConfig.newBuilder(mInstrumentation.getContext());
    configBuilder.experiment().setWebpBitmapFactory(mWebpBitmapFactory);
    ImagePipelineFactory.initialize(configBuilder.build());
  }
This is the test in order to directly decoding all types of webp images
static-webp/src/androidTest/java/com/facebook/webpsupport/WebpDecodingTest.java