code: def _sequence_like(instance, args):
      if isinstance(instance, dict):
          result = dict(zip(_sorted(instance), args))
          return type(instance)(
              (key, result[key]) for key in six.iterkeys(instance)
          )
      else:
          # Not a namedtuple
          return type(instance)(args)
  
file_path: analytics-zoo/pyzoo/zoo/util/nest.py
imports: import six
label_desc: Use image node_id 5 for calling a global function with example usage: _sequence_like(instance, args) and returns: type, type