code: def test_nested_complex_record_type():
      dt = np.dtype(
          [("a", "U7"), ("b", [("c", "int64", 2), ("d", "float64")])]
      )
      x = np.zeros(5, dt)
      s = "5 * {a: string[7, 'U32'], b: {c: 2 * int64, d: float64}}"
      assert discover(x) == dshape(s)
  
imports: from collections import OrderedDict
  from itertools import starmap
  from types import MappingProxyType
  from warnings import catch_warnings, simplefilter
  import numpy
  import pytest
  from datashader.datashape.discovery import discover, null, unite_identical, unite_base, unite_merge_dimensions, do_one, lowest_common_dshape
  from datashader.datashape.coretypes import int64, float64, complex128, string, bool_, Tuple, Record, date_, datetime_, time_, timedelta_, int32, var, Option, real, Null, TimeDelta, String, float32, R
  from datashader.datashape.util.testing import assert_dshape_equal
  from datashader.datashape import dshape
  from datetime import date, time, datetime, timedelta
label_desc: Use image node_id 37 for calling a global function with example usage: test_nested_complex_record_type() without return types