class_docstr: Report the status of a Job to the console using click
code: def artifact(self, state, pattern, asset):
      if asset is None:
          artifact = pattern
          state = "pending" if state == "pending" else "missing"
      else:
          artifact = asset.name
          state = "ok"
  
      name_ = self.ARTIFACT_NAME.format(artifact=artifact)
      state_ = click.style(
          self.ARTIFACT_STATE.format(state=state.upper()),
          self.COLORS[state],
      )
      return name_ + state_
  
imports: import collections
  import csv
  import operator
  import fnmatch
  import functools
  import time
  import click
  import requests
  from archery.utils.report import JinjaReport
label_desc: Use image node_id 3 for calling the ConsoleReport obj's underlying member method code with example usage: obj.artifact(state, pattern, asset) and returns: unknown