class_docstr: `Card` represents an individual Metaflow Card, a single HTML file, produced by
  the card `@card` decorator. `Card`s are contained by `CardContainer`, returned by
  `get_cards`.
  
  Note that the contents of the card, an HTML file, is retrieved lazily when you call
  `Card.get` for the first time or when the card is rendered in a notebook.
class_docstr_tok: ["`","Card","`","represents","an","individual","Metaflow","Card",",","a","single","HTML","file",",","produced","by","the","card","`","@","card","`","decorator",".","`","Card","`","s","are","contained","by","`","CardContainer","`",",","returned","by","`","get_cards","`",".","Note","that","the","contents","of","the","card",",","an","HTML","file",",","is","retrieved","lazily","when","you","call","`","Card.get","`","for","the","first","time","or","when","the","card","is","rendered","in","a","notebook","."]
code: def __init__(
      self,
      card_ds,
      type,
      path,
      hash,
      id=None,
      html=None,
      created_on=None,
      from_resumed=False,
      origin_pathspec=None,
  ):
      # private attributes
      self._path = path
      self._html = html
      self._created_on = created_on
      self._card_ds = card_ds
      self._card_id = id
  
      # public attributes
      self.hash = hash
      self.type = type
      self.from_resumed = from_resumed
      self.origin_pathspec = origin_pathspec
  
      # Tempfile to open stuff in browser
      self._temp_file = None
  
imports: from typing import Optional, Union, TYPE_CHECKING
  from metaflow.datastore import FlowDataStore
  from metaflow.metaflow_config import CARD_SUFFIX
  from .card_resolver import resolve_paths_from_task, resumed_info
  from .card_datastore import CardDatastore, CardNameSuffix
  from .exception import UnresolvableDatastoreException, IncorrectArgumentException, IncorrectPathspecException
  import os
  import tempfile
  import uuid
label_desc: Use image node_id 1 to create a new Card object  with example: obj = Card(card_ds, type, path, hash, id, html, created_on, from_resumed, origin_pathspec)