code: def check_save_load(
      self,
      model: Union[
          FullyConnectedActor,
          GaussianFullyConnectedActor,
          DirichletFullyConnectedActor,
      ],
      stochastic: bool,
  ):
      # jit.trace can't trace models with stochastic output
      if stochastic:
          return
  
      script_model = ActorTorchScriptWrapper(model)
  
      def compare_func(model_output, script_model_output):
          action, log_prob = script_model_output
          assert torch.all(action == model_output.action)
          assert torch.all(log_prob == model_output.log_prob)
  
      run_model_jit_trace(model, script_model, compare_func)
  
imports: import logging
  import unittest
  from typing import Union
  import numpy.testing
  import torch
  import torch.nn
  from reagent.core import types
  from reagent.models.actor import DirichletFullyConnectedActor, FullyConnectedActor, GaussianFullyConnectedActor
  from reagent.test.models.test_utils import run_model_jit_trace
label_desc: Use image node_id 1 for calling the TestActorBase obj's underlying member method code with example usage: obj.check_save_load(model, stochastic) without return types