code: def bubble_sort(list0):
      list1 = [x for x in list0]  # simulate copy
      for i in range(0, len(list1) - 1):
          swap_test = False
          for j in range(0, len(list1) - i - 1):
              if list1[j] > list1[j + 1]:
                  list1[j], list1[j + 1] = (
                      list1[j + 1],
                      list1[j],
                  )  # swap
              swap_test = True
          if swap_test == False:
              break
      return list1
  
label_desc: Use image node_id 1 for calling a global function with example usage: bubble_sort(list0) and returns: list1