code: def _mock_structured_spaces_record(step_no: int, done: bool = False):
      return StructuredSpacesRecord(
          substep_records=[
              _mock_spaces_record(
                  actor_id=ActorID(0, 0),
                  keys=["x", "y"],
                  value=[step_no * 10, step_no * 10],
                  reward=step_no,
              ),
              _mock_spaces_record(
                  actor_id=ActorID(1, 0),
                  keys=["z"],
                  value=[step_no * 10 + 1],
                  reward=step_no,
                  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 2 for calling a global function with example usage: _mock_structured_spaces_record(step_no, done) and returns: StructuredSpacesRecord