class_docstr: A checkpoint within an experiment. It represents the metrics and the file or directory specified by `path` at a point in time during the experiment.
class_docstr_tok: ["A","checkpoint","within","an","experiment",".","It","represents","the","metrics","and","the","file","or","directory","specified","by","`","path","`","at","a","point","in","time","during","the","experiment","."]
code: def _repr_html_(self) -> str:
      out = '<p><b><pre style="display: inline">Checkpoint(id="{}")</pre></b></p>'.format(
          self.id
      )
      out += "<p>"
      for field in ["created", "path", "step"]:
          out += '<pre style="display: inline">{:10s}</pre> {}<br/>'.format(
              html.escape(field) + ":",
              html.escape(str(getattr(self, field))),
          )
      out += "</p>"
  
      out += '<p><b><pre style="display: inline">metrics:</pre></b></p>'
      out += '<table><tr><th style="text-align: left">Name</th><th style="text-align: left">Value</th></tr>'
      if self.metrics is not None:
          for key, value in self.metrics.items():
              out += '<tr><td style="text-align: left"><pre>{}</pre></td><td style="text-align: left">{}</td>'.format(
                  html.escape(key), html.escape(str(value))
              )
      out += "</table>"
  
      return out
  
imports: import datetime
  import os
  import io
  import tempfile
  import json
  import sys
  import html
  from typing import Optional, Dict, Any, List, BinaryIO, TYPE_CHECKING, MutableSequence
  from .None import console
  from .json import CustomJSONEncoder
  from .metadata import rfc3339_datetime, parse_rfc3339
  from .validate import check_path
label_desc: Use image node_id 8 for calling the Checkpoint obj's underlying member method code with example usage: obj._repr_html_() and returns: out