class_docstr: Records spaces (i.e., raw actions and observations) from a single environment step.
  
  Individual items are structured in dictionaries, with keys corresponding to the structured sub-step IDs.
  
  Provides helpers methods for batching, i.e. stacking of multiple spaces records to be processed by a model
  in a single batch.
class_docstr_tok: ["Records","spaces","(","i.e.",",","raw","actions","and","observations",")","from","a","single","environment","step",".","Individual","items","are","structured","in","dictionaries",",","with","keys","corresponding","to","the","structured","sub-step","IDs",".","Provides","helpers","methods","for","batching",",","i.e",".","stacking","of","multiple","spaces","records","to","be","processed","by","a","model","in","a","single","batch","."]
docstr: Return whether this record is batched or not.
  
  :return: whether this record is batched or not
code: def is_batched(self) -> bool:
      """Return whether this record is batched or not.
  
      :return: whether this record is batched or not
      """
      return self.substep_records[0].batch_shape is not None
  
imports: from dataclasses import dataclass
  from typing import Optional, List, Union, Dict
  import numpy
  import torch
  from maze.core.env.action_conversion import ActionType, TorchActionType
  from maze.core.env.maze_env import MazeEnv
  from maze.core.env.observation_conversion import ObservationType, TorchObservationType
  from maze.core.env.structured_env import ActorID
  from maze.core.log_events.step_event_log import StepEventLog
  from maze.core.log_stats.log_stats import LogStats
  from maze.core.trajectory_recording.records.raw_maze_state import RawState, RawMazeAction
  from maze.core.trajectory_recording.records.spaces_record import SpacesRecord, PolicyRecordType
  from maze.core.trajectory_recording.records.state_record import StateRecord
label_desc: Use image node_id 9 for calling the StructuredSpacesRecord obj's underlying member method code with example usage: obj.is_batched() and returns: unknown