class_docstr: A pretty-printed version of any Python object.
  
  Large objects are truncated using Python's built-in [`reprlib`](https://docs.python.org/3/library/reprlib.html).
  
  Example:
  ```
  from datetime import datetime
  current.card.append(Artifact({'now': datetime.utcnow()}))
  ```
  
  Parameters
  ----------
  artifact : object
      Any Python object.
  name : str, optional
      Optional label for the object.
  compressed : bool, default: True
      Use a truncated representation.
class_docstr_tok: ["A","pretty-printed","version","of","any","Python","object",".","Large","objects","are","truncated","using","Python","'s","built-in","[","`","reprlib","`","]","(","https",":","\/\/docs.python.org\/3\/library\/reprlib.html",")",".","Example",":","``","`","from","datetime","import","datetime","current.card.append","(","Artifact","(","{","'now","'",":","datetime.utcnow","(",")","}",")",")","``","`","Parameters","--","--","--","--","--","artifact",":","object","Any","Python","object",".","name",":","str",",","optional","Optional","label","for","the","object",".","compressed",":","bool",",","default",":","True","Use","a","truncated","representation","."]
code: def update(self, artifact):
      self._artifact = artifact
  
imports: from typing import Any, List, Optional, Union
  from .basic import LogComponent, ErrorComponent, ArtifactsComponent, TableComponent, ImageComponent, SectionComponent, MarkdownComponent
  from .card import MetaflowCardComponent
  from .convert_to_native_type import TaskToDict, _full_classname
  from .renderer_tools import render_safely
  import uuid
label_desc: Use image node_id 1 for calling the Artifact obj's underlying member method code with example usage: obj.update(artifact) without return types