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: Copies the contents of the model card proto into current object.
docstr_tok: ["Copies","the","contents","of","the","model","card","proto","into","current","object","."]
code: def copy_from_proto(self: T, proto: message.Message) -> T:
      """Copies the contents of the model card proto into current object."""
      notice = dedent(
          """
          This function is deprecated and will be removed in a future version.
  
          If you would like to create a new model card from a proto, please use
          `ModelCard.from_proto(proto)` instead.
  
          If you would like to copy the contents of a proto into an existing model
          card, please use `model_card.clear()` and `model_card.merge_from_proto(proto)`
          instead.
          """
      )
      warn(notice, DeprecationWarning, stacklevel=2)
      self.clear()
      return self._from_proto(proto)
  
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 6 for calling the BaseModelCardField obj's underlying member method code with example usage: obj.copy_from_proto(proto) and returns: self