code: def test_complex(self):
      self.assertEqual(
          parse("complex[float32]", self.sym),
          ct.DataShape(ct.complex_float32),
      )
      self.assertEqual(
          parse("complex[float64]", self.sym),
          ct.DataShape(ct.complex_float64),
      )
      self.assertEqual(
          parse("complex", self.sym), ct.DataShape(ct.complex_)
      )
      # 'complex' is an alias for 'complex[float64]'
      self.assertEqual(
          parse("complex", self.sym),
          parse("complex[float64]", self.sym),
      )
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  import pytest
  from datashader import datashape
  from datashader.datashape.util.testing import assert_dshape_equal
  from datashader.datashape.parser import parse
  from datashader.datashape import coretypes
  from datashader.datashape import DataShapeSyntaxError
label_desc: Use image node_id 9 for calling the TestDataShapeParseBasicDType obj's underlying member method code with example usage: obj.test_complex() without return types