code: def default_enter(path, key, value):
      # print('enter(%r, %r)' % (key, value))
      if isinstance(value, basestring):
          return value, False
      elif isinstance(value, Mapping):
          return value.__class__(), ItemsView(value)
      elif isinstance(value, Sequence):
          return value.__class__(), enumerate(value)
      elif isinstance(value, Set):
          return value.__class__(), enumerate(value)
      else:
          # files, strings, other iterables, and scalars are not
          # traversed
          return value, False
  
imports: import os
  import math
  import time
  import codecs
  import random
  import socket
  import hashlib
  import itertools
  from collections import Mapping, Sequence, Set, ItemsView
label_desc: Use image node_id 24 for calling a global function with example usage: default_enter(path, key, value) and returns: value,  False, value,  ItemsView, value,  enumerate, value,  enumerate, value,  False