class_docstr: Base class for evaluation metrics parser.
class_docstr_tok: ["Base","class","for","evaluation","metrics","parser","."]
docstr: Custom parser need to inherit from ParserBase and must supply a _validate method to test various restrictions as needed.
  
  Args:
      json_data (dict): Metric data to be validated.
docstr_tok: ["Custom","parser","need","to","inherit","from","ParserBase","and","must","supply","a","_validate","method","to","test","various","restrictions","as","needed",".","Args",":","json_data","(","dict",")",":","Metric","data","to","be","validated","."]
code: def _validate(self, json_data: dict):
      """Custom parser need to inherit from ParserBase and must supply a _validate method to test various restrictions as needed.
  
      Args:
          json_data (dict): Metric data to be validated.
      """  # noqa E501 # pylint: disable=line-too-long
      pass
  
imports: from __future__ import absolute_import
  from abc import ABC, abstractmethod
  from enum import Enum
  from collections import defaultdict
  from typing import Union, List
  from sagemaker.model_card.schema_constraints import PYTHON_TYPE_TO_METRIC_VALUE_TYPE, METRIC_VALUE_TYPE_MAP, MetricTypeEnum
label_desc: Use image node_id 1 for calling the ParserBase obj's underlying member method code with example usage: obj._validate(json_data) without return types