class_docstr: A helper class for generating traces in Chrome Trace Format.
class_docstr_tok: ["A","helper","class","for","generating","traces","in","Chrome","Trace","Format","."]
docstr: Adds a process metadata event to the trace.
  
  Args:
    name:  The process name as a string.
    pid:  Identifier of the process as an integer.
docstr_tok: ["Adds","a","process","metadata","event","to","the","trace",".","Args",":","name",":","The","process","name","as","a","string",".","pid",":","Identifier","of","the","process","as","an","integer","."]
code: def emit_pid(self, name: str, pid: int) -> None:
      """Adds a process metadata event to the trace.
  
      Args:
        name:  The process name as a string.
        pid:  Identifier of the process as an integer.
      """
      event = {}
      event["name"] = "process_name"
      event["ph"] = "M"
      event["pid"] = pid
      event["args"] = {"name": name}
      self._metadata.append(event)
  
imports: import collections
  import copy
  import json
  import re
  from typing import Any, Dict, List, Optional, Tuple, Union
  from tensorflow.core.framework import step_stats_pb2
  from tensorflow.python.platform import build_info
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 3 for calling the _ChromeTraceFormatter obj's underlying member method code with example usage: obj.emit_pid(name, pid) without return types