class_docstr: Model card field base class.
  
  This is an abstract class. All the model card fields should inherit this class
  and override the _proto_type property to the corresponding proto type. This
  abstract class provides methods `from_proto`, `merge_from_proto` and
  `to_proto` to convert the class from and to proto. The child class does not
  need to override this unless it needs some special process.
docstr: Convert your model card to a python dictionary.
docstr_tok: ["Convert","your","model","card","to","a","python","dictionary","."]
code: def to_dict(self) -> Dict[str, Any]:
      """Convert your model card to a python dictionary."""
      # ignore None properties recursively to allow missing values.
      ignore_none = lambda properties: {
          k: v for k, v in properties if v
      }
      return dataclasses.asdict(self, dict_factory=ignore_none)
  
imports: import abc
  import dataclasses
  import json
  from textwrap import dedent
  from typing import Any, Dict, Type, TypeVar
  from warnings import warn
  from google.protobuf import descriptor, message
  from model_card_toolkit.utils import json_utils
label_desc: Use image node_id 10 for calling the BaseModelCardField obj's underlying member method code with example usage: obj.to_dict() and returns: dataclasses