code: def get_json_objects(
      object_count: int, message_count: int
  ) -> list[dict]:
      return [
          {
              "success": index % 2 == 0,
              "file": f"file-{index}",
              "note": f"note-{index}",
              "error-messages": [
                  f"error-message-{index}-{j}"
                  for j in range(message_count)
              ],
          }
          for index in range(object_count)
      ]
  
imports: from __future__ import annotations
  from datalad.tests.utils_pytest import assert_equal
  from ..exception import CommandError, _format_json_error_messages
label_desc: Use image node_id 1 for calling a global function with example usage: get_json_objects(object_count, message_count) and returns: unknown