code: def sac_scorer(actor_network: ModelBase) -> Scorer:
      @torch.no_grad()
      def score(
          preprocessed_obs: rlt.FeatureData,
      ) -> GaussianSamplerScore:
          actor_network.eval()
          loc, scale_log = actor_network._get_loc_and_scale_log(
              preprocessed_obs
          )
          actor_network.train()
          return GaussianSamplerScore(loc=loc, scale_log=scale_log)
  
      return score
  
imports: import reagent.core.types
  import torch
  from reagent.gym.types import GaussianSamplerScore, Scorer
  from reagent.models.base import ModelBase
label_desc: Use image node_id 1 for calling a global function with example usage: sac_scorer(actor_network) and returns: score, GaussianSamplerScore