code: def _mock_spaces_record(
      actor_id: ActorID,
      keys: List[str],
      value: Union[int, List[int]],
      reward: int = 1,
      done: bool = False,
  ):
      return SpacesRecord(
          actor_id=actor_id,
          observation={k: np.array(value) for k in keys},
          action={"action": np.array(value)},
          reward=reward,
          done=done,
      )
  
file_path: maze/maze/test/core/trajectory_recording/test_spaces_step_record.py
imports: from typing import List, Union
  import numpy
  import torch
  from maze.core.env.structured_env import ActorID
  from maze.core.trajectory_recording.records.spaces_record import SpacesRecord
  from maze.core.trajectory_recording.records.structured_spaces_record import StructuredSpacesRecord
label_desc: Use image node_id 1 for calling a global function with example usage: _mock_spaces_record(actor_id, keys, value, reward, done) and returns: SpacesRecord