code: def get_all():
      """Return TensorBoardInfo values for running TensorBoard processes.
  
      This function may not provide a perfect snapshot of the set of running
      processes. Its result set may be incomplete if the user has cleaned
      their /tmp/ directory while TensorBoard processes are running. It may
      contain extraneous entries if TensorBoard processes exited uncleanly
      (e.g., with SIGKILL or SIGQUIT).
  
      Entries in the info directory that do not represent valid
      `TensorBoardInfo` values will be silently ignored.
  
      Returns:
        A fresh list of `TensorBoardInfo` objects.
      """
      info_dir = _get_info_dir()
      results = []
      for filename in os.listdir(info_dir):
          filepath = os.path.join(info_dir, filename)
          try:
              with open(filepath) as infile:
                  contents = infile.read()
          except IOError as e:
              if e.errno == errno.EACCES:
                  # May have been written by this module in a process whose
                  # `umask` includes some bits of 0o444.
                  continue
              else:
                  raise
          try:
              info = _info_from_string(contents)
          except ValueError:
              # Ignore unrecognized files, logging at debug only.
              tb_logging.get_logger().debug(
                  "invalid info file: %r",
                  filepath,
                  exc_info=True,
              )
          else:
              results.append(info)
      return results
  
imports: import base64
  import dataclasses
  import datetime
  import errno
  import json
  import os
  import subprocess
  import tempfile
  import time
  import typing
  from typing import Optional
  from tensorboard import version
  from tensorboard.util import tb_logging
label_desc: Use image node_id 9 for calling a global function with example usage: get_all() and returns: results