class_docstr: A connector used to mean-std-filter observations.
  
  Incoming observations are filtered such that the output of this filter is on
  average zero and has a standard deviation of 1. This filtering is applied
  separately per element of the observation space.
class_docstr_tok: ["A","connector","used","to","mean-std-filter","observations",".","Incoming","observations","are","filtered","such","that","the","output","of","this","filter","is","on","average","zero","and","has","a","standard","deviation","of","1",".","This","filtering","is","applied","separately","per","element","of","the","observation","space","."]
code: def to_state(self):
      # Flattening is deterministic
      flattened_rs = tree.flatten(self.filter.running_stats)
      flattened_buffer = tree.flatten(self.filter.buffer)
      return MeanStdObservationFilterAgentConnector.__name__, {
          "shape": self.filter.shape,
          "no_preprocessor": self.filter.no_preprocessor,
          "demean": self.filter.demean,
          "destd": self.filter.destd,
          "clip": self.filter.clip,
          "running_stats": [s.to_state() for s in flattened_rs],
          "buffer": [s.to_state() for s in flattened_buffer],
      }
  
imports: from typing import Any, List
  from gymnasium.spaces import Discrete, MultiDiscrete
  import numpy
  import tree
  from ray.rllib.connectors.agent.synced_filter import SyncedFilterAgentConnector
  from ray.rllib.connectors.connector import AgentConnector
  from ray.rllib.connectors.connector import ConnectorContext
  from ray.rllib.connectors.registry import register_connector
  from ray.rllib.policy.sample_batch import SampleBatch
  from ray.rllib.utils.filter import Filter
  from ray.rllib.utils.filter import MeanStdFilter, ConcurrentMeanStdFilter
  from ray.rllib.utils.spaces.space_utils import get_base_struct_from_space
  from ray.rllib.utils.typing import AgentConnectorDataType
  from ray.util.annotations import PublicAPI
  from ray.rllib.utils.filter import RunningStat
label_desc: Use image node_id 3 for calling the MeanStdObservationFilterAgentConnector obj's underlying member method code with example usage: obj.to_state() and returns: MeanStdObservationFilterAgentConnector,  dict