code: def _register_magics(ipython):
      """Register IPython line/cell magics.
  
      Args:
        ipython: An `InteractiveShell` instance.
      """
      ipython.register_magic_function(
          _start_magic,
          magic_kind="line",
          magic_name="tensorboard",
      )
  
imports: import datetime
  import errno
  import html
  import json
  import os
  import random
  import shlex
  import textwrap
  import time
  from tensorboard import manager
label_desc: Use image node_id 4 for calling a global function with example usage: _register_magics(ipython) without return types