class_docstr: Var to handle complex data.
class_docstr_tok: ["Var","to","handle","complex","data","."]
code: def real(self, real):
      if not types.is_complex(self.dtype):
          raise ValueError(
              f"Only complex number can set `real`. This var is {self.dtype}."
          )
      self._real = real
  
imports: from typing import Optional, Union
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.types import builtin_to_string
  from coremltools.converters.mil.mil.types.symbolic import any_symbolic
label_desc: Use image node_id 4 for calling the ComplexVar obj's underlying member method code with example usage: obj.real(real) without return types