code: public static Pair<ComputationGraph, Normalizer> restoreComputationGraphAndNormalizer(
              @NonNull InputStream is, boolean loadUpdater) throws IOException {
          checkInputStream(is);
  
          File tmpFile = null;
          try {
              tmpFile = tempFileFromStream(is);
              return restoreComputationGraphAndNormalizer(tmpFile, loadUpdater);
          } finally {
              if (tmpFile != null) {
                  tmpFile.delete();
              }
          }
      }
docs: Restore a ComputationGraph and Normalizer (if present - null if not) from the InputStream.
  Note: the input stream is read fully and closed by this method. Consequently, the input stream cannot be re-used.
  
  @param is          Input stream to read from
  @param loadUpdater Whether to load the updater from the model or not
  @return Model and normalizer, if present
  @throws IOException If an error occurs when reading from the stream