docs: public static BidiGlobalDir decodeBidiGlobalDirFromPyOptions(String bidiIsRtlFn) {
      if (bidiIsRtlFn == null || bidiIsRtlFn.isEmpty()) {
        return null;
      }
      int dotIndex = bidiIsRtlFn.lastIndexOf('.');
      Preconditions.checkArgument(
          dotIndex > 0 && dotIndex < bidiIsRtlFn.length() - 1,
          "If specified a bidiIsRtlFn must include the module path to allow for proper importing.");
      // When importing the module, we'll using the constant name to avoid potential conflicts.
      String fnName = bidiIsRtlFn.substring(dotIndex + 1) + "()";
      return BidiGlobalDir.forIsRtlCodeSnippet(
          IS_RTL_MODULE_ALIAS + '.' + fnName, null, SoyBackendKind.PYTHON_SRC);
    }