def try_call_complex_method(cls_type, method):
    """ __complex__ needs special treatment as the argument names are kwargs
    and therefore specific in name and default value.
    """
    if method in cls_type.jit_methods:
        template = f"""
def func(real=0, imag=0):
    return real.{method}()
"""
        return extract_template(template, "func")
 __complex__ needs special treatment as the argument names are kwargs
    and therefore specific in name and default value.
    
numba/experimental/jitclass/overloads.py