code: def _parse_result(data, check=True):
      if check and data and data[0]:
          value = data[0].get("_id", None)
          if not isinstance(value, float) or not math.isnan(value):
              return value
  
      return None
  
imports: from dataclasses import asdict, dataclass
  from datetime import date, datetime
  import math
  import typing
  import asyncio
  from bson.regex import Regex
  from motor.motor_asyncio import AsyncIOMotorCollection
  import strawberry
  import fiftyone
  import fiftyone.core.fields
  import fiftyone.server.constants
  from fiftyone.server.data import Info
  from fiftyone.server.utils import meets_type
label_desc: Use image node_id 5 for calling a global function with example usage: _parse_result(data, check) and returns: None, value