code: def to_dict(self) -> Dict[str, str]:
      return compact(asdict(self))
  
file_path: dvc/dvc/annotations.py
imports: from dataclasses import asdict, dataclass, field, fields
  from typing import Any, ClassVar, Dict, List, Optional
  from funcy import compact
  from voluptuous import Required
label_desc: Use image node_id 1 for calling the Artifact obj's underlying member method code with example usage: obj.to_dict() and returns: compact