code: def _make_sample(filepath: str, data: t.Dict):
      sample = fo.Sample(filepath=filepath, **_make_data(data))
      sample.frames[1] = fo.Frame(frame_number=1, **_make_data(data))
      return sample
  
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 4 for calling a global function with example usage: _make_sample(filepath, data) and returns: sample