public static void onCreate(Instrumentation instrumentation, Bundle arguments) {
    Registry registry = Registry.getRegistry();
    registry.instrumentation = instrumentation;
    registry.arguments = arguments;
  }
Call this exactly once in your process before any screenshots are generated.

<p>Typically this will be in {@code AndroidJUnitRunner#onCreate()}
core/src/main/java/com/facebook/testing/screenshot/ScreenshotRunner.java