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 inject_head(self) -> None:
      join = ""
      if "<head>" in self.html:
          parts = self.html.split("<head>", 1)
          parts[0] = parts[0] + "<head>"
      elif "<html>" in self.html:
          parts = self.html.split("<html>", 1)
          parts[0] = parts[0] + "<html><head>"
          parts[1] = "</head>" + parts[1]
      else:
          parts = ["", self.html]
      parts.insert(
          1,
          '<base target="_blank"><link rel="stylesheet" type="text/css" href="https://app.wandb.ai/normalize.css" />',
      )
      self.html = join.join(parts).strip()
  
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 2 for calling the Html obj's underlying member method code with example usage: obj.inject_head() without return types