code: def __init__(self, name, url=None, content=None):
      url = url or f"http://foo-bar.ch/{name}"
      content = content or f"content of {name}"
      self.url = url
      self.url_info = checksums_lib.UrlInfo(
          size=len(content),
          checksum=_sha256(content),
          filename=name,
      )
      self.file_name = resource_lib.get_dl_fname(
          url, self.url_info.checksum
      )
      self.file_path = epath.Path(f"/dl_dir/{self.file_name}")
      self.url_name = resource_lib.get_dl_fname(url, _sha256(url))
      self.url_path = epath.Path(f"/dl_dir/{self.url_name}")
  
imports: import collections
  import hashlib
  import json
  import os
  import pickle
  from unittest import mock
  from absl.testing import parameterized
  from etils import epath
  import promise
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core.download import checksums
  from tensorflow_datasets.core.download import download_manager
  from tensorflow_datasets.core.download import downloader
  from tensorflow_datasets.core.download import extractor
  from tensorflow_datasets.core.download import resource
  from tensorflow_datasets.core.utils import tree_utils
label_desc: Use image node_id 1 to create a new Artifact object from inherited base classes: object with example: obj = Artifact(name, url, content)