code: def caselessSort(alist):
      """Return a sorted copy of a list. If there are only strings
      in the list, it will not consider case.
      """
  
      try:
          return sorted(alist, key=lambda a: (a.lower(), a))
      except TypeError:
          return sorted(alist)
  
imports: import ast
  import string
label_desc: Use image node_id 6 for calling a global function with example usage: caselessSort(alist) and returns: sorted, sorted