code: def test_status(gdb_arrow):
      check_stack_repr(gdb_arrow, "ok_status", "arrow::Status::OK()")
      check_stack_repr(
          gdb_arrow,
          "error_status",
          'arrow::Status::IOError("This is an error")',
      )
      check_stack_repr(
          gdb_arrow,
          "error_detail_status",
          'arrow::Status::IOError("This is an error", '
          'detail=[custom-detail-id] "This is a detail")',
      )
  
      check_stack_repr(gdb_arrow, "ok_result", "arrow::Result<int>(42)")
      check_stack_repr(
          gdb_arrow,
          "error_result",
          'arrow::Result<int>(arrow::Status::IOError("This is an error"))',
      )
      check_stack_repr(
          gdb_arrow,
          "error_detail_result",
          'arrow::Result<int>(arrow::Status::IOError("This is an error", '
          'detail=[custom-detail-id] "This is a detail"))',
      )
  
imports: from functools import lru_cache
  import os
  import re
  import shutil
  import subprocess
  import sys
  import pytest
  import pyarrow
label_desc: Use image node_id 12 for calling a global function with example usage: test_status(gdb_arrow) without return types