code: def _get_field_kwargs(value, field, dynamic):
      kwargs = {
          "ftype": type(field),
          "db_field": field.db_field,
          "description": field.description,
          "info": field.info,
      }
  
      if isinstance(field, (fof.ListField, fof.DictField)):
          field = field.field
          if field is not None:
              kwargs["subfield"] = type(field)
              if isinstance(field, fof.EmbeddedDocumentField):
                  fields = _parse_embedded_doc_list_fields(
                      value, dynamic
                  )
                  kwargs["embedded_doc_type"] = field.document_type
                  kwargs["fields"] = fields
      elif isinstance(field, fof.EmbeddedDocumentField):
          kwargs["embedded_doc_type"] = field.document_type
          kwargs["fields"] = _parse_embedded_doc_fields(value, dynamic)
  
      return kwargs
  
imports: from datetime import date, datetime
  import inspect
  import json
  import numbers
  import six
  import sys
  from bson import Binary, json_util, ObjectId, SON
  import numpy
  import pytz
  import fiftyone
  import fiftyone.core.fields
  import fiftyone.core.media
  import fiftyone.core.utils
label_desc: Use image node_id 8 for calling a global function with example usage: _get_field_kwargs(value, field, dynamic) and returns: kwargs