code: def ei_taylor(z, _e1=False):
      s = t = z
      k = 2
      while 1:
          t = t * z / k
          term = t / k
          if abs(term) < 1e-17:
              break
          s += term
          k += 1
      s += euler
      if _e1:
          s += log(-z)
      else:
          if type(z) is float or z.imag == 0.0:
              s += math_log(abs(z))
          else:
              s += cmath.log(z)
      return s
  
imports: import operator
  import math
  import cmath
label_desc: Use image node_id 26 for calling a global function with example usage: ei_taylor(z, _e1) and returns: s