code: def _mock_space_record(value: int):
      substep_record = SpacesRecord(
          actor_id=ActorID(0, 0),
          observation=dict(observation=np.array(value)),
          action=dict(action=np.array(value)),
          reward=value,
          done=value > 0,
      )
  
      return StructuredSpacesRecord(substep_records=[substep_record])
  
file_path: maze/maze/test/core/trajectory_recording/test_trajectory_record.py
imports: from typing import List
  import numpy
  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
  from maze.core.trajectory_recording.records.trajectory_record import SpacesTrajectoryRecord
label_desc: Use image node_id 1 for calling a global function with example usage: _mock_space_record(value) and returns: StructuredSpacesRecord