code: def mergextend(list1, list2):
      if list1 is None or Ellipsis not in list1:
          return list1
      index = list1.index(Ellipsis)
      return (
          list(list1[:index]) + list(list2) + list(list1[index + 1 :])
      )
  
imports: from __future__ import division
  import re
  from decimal import Decimal
  from math import ceil, cos, floor, log10, pi, sin
label_desc: Use image node_id 30 for calling a global function with example usage: mergextend(list1, list2) and returns: unknown, list1