code: def partition(xs, n):
      raise NotImplementedError(
          f"Type {type(xs)} has not implemeted `partition`."
      )
  
imports: from collections.abc import Sequence
  from functools import singledispatch
label_desc: Use image node_id 2 for calling a global function with example usage: partition(xs, n) without return types