class_docstr: Wandb class for arbitrary html.
  
  Arguments:
      data: (string or io object) HTML to display in wandb
      inject: (boolean) Add a stylesheet to the HTML object.  If set
          to False the HTML will pass through unchanged.
class_docstr_tok: ["Wandb","class","for","arbitrary","html",".","Arguments",":","data",":","(","string","or","io","object",")","HTML","to","display","in","wandb","inject",":","(","boolean",")","Add","a","stylesheet","to","the","HTML","object",".","If","set","to","False","the","HTML","will","pass","through","unchanged","."]
code: def seq_to_json(
      cls: Type["Html"],
      seq: Sequence["BatchableMedia"],
      run: "LocalRun",
      key: str,
      step: Union[int, str],
  ) -> dict:
      base_path = os.path.join(run.dir, cls.get_media_subdir())
      filesystem.mkdir_exists_ok(base_path)
  
      meta = {
          "_type": "html",
          "count": len(seq),
          "html": [h.to_json(run) for h in seq],
      }
      return meta
  
file_path: wandb/wandb/sdk/data_types/html.py
imports: import os
  from typing import TYPE_CHECKING, Sequence, Type, Union
  from wandb.sdk.lib import filesystem, runid
  from .None import _dtypes
  from ._private import MEDIA_TMP
  from .base_types.media import BatchableMedia
label_desc: Use image node_id 6 for calling the Html obj's underlying member method code with example usage: obj.seq_to_json(cls, seq, run, key, step) and returns: meta