class_docstr: A class for visualizing execution timelines of TensorFlow steps.
class_docstr_tok: ["A","class","for","visualizing","execution","timelines","of","TensorFlow","steps","."]
docstr: Allocate a process Id.
docstr_tok: ["Allocate","a","process","Id","."]
code: def _alloc_pid(self) -> int:
      """Allocate a process Id."""
      pid = self._next_pid
      self._next_pid += 1
      return pid
  
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 2 for calling the Timeline obj's underlying member method code with example usage: obj._alloc_pid() and returns: pid