code: def _make_data(data):
      return dict(
          classification=fo.Classification(**data),
          detections=fo.Detections(detections=[fo.Detection(**data)]),
          **data,
      )
  
imports: from dataclasses import asdict
  from datetime import date, datetime
  import typing
  import unittest
  import strawberry
  from strawberry.schema.config import StrawberryConfig
  import fiftyone
  from fiftyone.server.constants import SCALAR_OVERRIDES
  from fiftyone.server.context import get_context
  from fiftyone.server.lightning import lightning_resolver, LightningInput, LightningPathInput
  from decorators import drop_async_dataset
label_desc: Use image node_id 3 for calling a global function with example usage: _make_data(data) and returns: dict