class_docstr: Typed objects that can be logged with `wandb.log()` and visualized by wandb.
  
  The objects will be serialized as JSON and always have a _type attribute that
  indicates how to interpret the other fields.
class_docstr_tok: ["Typed","objects","that","can","be","logged","with","`","wandb.log","(",")","`","and","visualized","by","wandb",".","The","objects","will","be","serialized","as","JSON","and","always","have","a","_type","attribute","that","indicates","how","to","interpret","the","other","fields","."]
docstr: Get the name with the appropriate suffix.
  
  Args:
      name (str): the name of the file
      filetype (str, optional): the filetype to use. Defaults to "json".
  
  Returns:
      str: a filename which is suffixed with it's `_log_type` followed by the
          filetype.
docstr_tok: ["Get","the","name","with","the","appropriate","suffix",".","Args",":","name","(","str",")",":","the","name","of","the","file","filetype","(","str",",","optional",")",":","the","filetype","to","use",".","Defaults","to","``","json","''",".","Returns",":","str",":","a","filename","which","is","suffixed","with","it","'s","`","_log_type","`","followed","by","the","filetype","."]
code: def with_suffix(
      cls: Type["WBValue"], name: str, filetype: str = "json"
  ) -> str:
      """Get the name with the appropriate suffix.
  
      Args:
          name (str): the name of the file
          filetype (str, optional): the filetype to use. Defaults to "json".
  
      Returns:
          str: a filename which is suffixed with it's `_log_type` followed by the
              filetype.
      """
      if cls._log_type is not None:
          suffix = cls._log_type + "." + filetype
      else:
          suffix = filetype
      if not name.endswith(suffix):
          return name + "." + suffix
      return name
  
imports: from typing import TYPE_CHECKING, Any, ClassVar, Dict, List, Optional, Type, Union
  from wandb import util
label_desc: Use image node_id 4 for calling the WBValue obj's underlying member method code with example usage: obj.with_suffix(cls, name, filetype) and returns: name, unknown