class_docstr: Extend IPython kernel for parallel computing
class_docstr_tok: ["Extend","IPython","kernel","for","parallel","computing"]
docstr: init metadata dict, for execute/apply_reply
docstr_tok: ["init","metadata","dict",",","for","execute\/apply_reply"]
code: def init_metadata(self, parent):
      """init metadata dict, for execute/apply_reply"""
      parent_metadata = parent.get("metadata", {})
      return {
          "started": utcnow(),
          "dependencies_met": True,
          "engine": self.ident,
          "is_broadcast": parent_metadata.get("is_broadcast", False),
          "is_coalescing": parent_metadata.get("is_coalescing", False),
          "original_msg_id": parent_metadata.get("original_msg_id", ""),
      }
  
imports: import asyncio
  import inspect
  import sys
  from functools import partial
  import ipykernel
  from ipykernel.ipkernel import IPythonKernel
  from traitlets import Integer, Type
  from ipyparallel.serialize import serialize_object, unpack_apply_message
  from ipyparallel.util import utcnow
  from .datapub import ZMQDataPublisher
label_desc: Use image node_id 6 for calling the IPythonParallelKernel obj's underlying member method code with example usage: obj.init_metadata(parent) and returns: dict