code: def real_check(*args, func=None):
      
      func = func or inspect.stack()[2][3]
      for var in args:
          if not isinstance(var, numbers.Real):
              name = type(var).__name__
              raise ComplexError(
                  f'Function {func} expected real number, {name} got instead.')
docs: Check if arguments are real numbers.