docstr: Finish populating metadata.
  
  Run after completing an execution request.
docstr_tok: ["Finish","populating","metadata",".","Run","after","completing","an","execution","request","."]
code: def finish_metadata(self, parent, metadata, reply_content):
      """Finish populating metadata.
  
      Run after completing an execution request.
      """
      # FIXME: remove deprecated ipyparallel-specific code
      # This is required by ipyparallel < 5.0
      metadata["status"] = reply_content["status"]
      if (
          reply_content["status"] == "error"
          and reply_content["ename"] == "UnmetDependency"
      ):
          metadata["dependencies_met"] = False
  
      return metadata
  
imports: import getpass
  import sys
  from IPython.core import release
  from ipython_genutils.py3compat import builtin_mod, PY3, unicode_type, safe_unicode
  from IPython.utils.tokenutil import token_at_cursor, line_at_cursor
  from traitlets import Instance, Type, Any, List, Bool
  from .comm import CommManager
  from .kernelbase import Kernel
  from .zmqshell import ZMQInteractiveShell
label_desc: Use image node_id 8 for calling the IPythonKernel obj's underlying member method code with example usage: obj.finish_metadata(parent, metadata, reply_content) and returns: metadata