code: def test_form_widget_get_with_datetime_and_date_fields():
      from matplotlib.backends.backend_qt import _create_qApp
  
      _create_qApp()
  
      form = [
          ("Datetime field", datetime(year=2021, month=3, day=11)),
          ("Date field", date(year=2021, month=3, day=11)),
      ]
      widget = _formlayout.FormWidget(form)
      widget.setup()
      values = widget.get()
      assert values == [
          datetime(year=2021, month=3, day=11),
          date(year=2021, month=3, day=11),
      ]
  
imports: import copy
  import importlib
  import os
  import signal
  import sys
  from datetime import date, datetime
  from unittest import mock
  import pytest
  import matplotlib
  from matplotlib import pyplot
  from matplotlib._pylab_helpers import Gcf
  from matplotlib import _c_internal_utils
label_desc: Use image node_id 10 for calling a global function with example usage: test_form_widget_get_with_datetime_and_date_fields() without return types