code: def _type_digest(self, config: bool) -> Dict[str, Any]:
          
          res = {"base": self.yang_type()}
          if self.name is not None:
              res["derived"] = self.name
          return res
docs: Return receiver's type digest.
  
          Args:
              config: Specifies whether the type is on a configuration node.