code: def can_sequence(obj):
      """can the elements of a sequence"""
      if istype(obj, sequence_types):
          t = type(obj)
          return t([can(i) for i in obj])
      else:
          return obj
  
imports: import warnings
  import copy
  import sys
  from types import FunctionType
  from ipython_genutils import py3compat
  from ipython_genutils.importstring import import_item
  from ipython_genutils.py3compat import string_types, iteritems, buffer_to_bytes, buffer_to_bytes_py2
  from traitlets.log import get_logger
label_desc: Use image node_id 10 for calling a global function with example usage: can_sequence(obj) and returns: t, obj