code: def make_testcase(
      *,
      start_timestamp: float,
      test_name_or_nodeid: str,
      data: ConjectureData,
      how_generated: str = "unknown",
      string_repr: str = "<unknown>",
      arguments: Optional[dict] = None,
      metadata: Optional[dict] = None,
      coverage: Optional[Dict[str, List[int]]] = None,
  ) -> dict:
      if data.interesting_origin:
          status_reason = str(data.interesting_origin)
      else:
          status_reason = str(data.events.pop("invalid because", ""))
  
      return {
          "type": "test_case",
          "run_start": start_timestamp,
          "property": test_name_or_nodeid,
          "status": {
              Status.OVERRUN: "gave_up",
              Status.INVALID: "gave_up",
              Status.VALID: "passed",
              Status.INTERESTING: "failed",
          }[data.status],
          "status_reason": status_reason,
          "representation": string_repr,
          "arguments": arguments or {},
          "how_generated": how_generated,  # iid, mutation, etc.
          "features": {
              **{
                  f"target:{k}".strip(":"): v
                  for k, v in data.target_observations.items()
              },
              **data.events,
          },
          "metadata": {
              **(metadata or {}),
              "traceback": getattr(
                  data.extra_information, "_expected_traceback", None
              ),
          },
          "coverage": coverage,
      }
  
file_path: catboost/contrib/python/hypothesis/py3/hypothesis/internal/observability.py
imports: import json
  import os
  from datetime import date, timedelta
  from typing import Callable, Dict, List, Optional
  from hypothesis.configuration import storage_directory
  from hypothesis.internal.conjecture.data import ConjectureData, Status
label_desc: Use image node_id 2 for calling a global function with example usage: make_testcase() and returns: dict