code: def ssort(shelf):
      length = len(shelf)
      for j in range(0, length - 1):
          imin = j
          for i in range(j + 1, length):
              if shelf[i].size < shelf[imin].size:
                  imin = i
          if imin != j:
              shelf.insert(j, shelf.pop(imin))
  
imports: from turtle import *
  import random
label_desc: Use image node_id 2 for calling a global function with example usage: ssort(shelf) without return types