class_docstr: Metric Parser for clarify bias
class_docstr_tok: ["Metric","Parser","for","clarify","bias"]
docstr: Implement ParserBase._validate.
  
  Args:
      json_data (dict): Metric data to be validated.
  
  Raises:
      ValueError: Missing the facets key in the data.
docstr_tok: ["Implement","ParserBase._validate",".","Args",":","json_data","(","dict",")",":","Metric","data","to","be","validated",".","Raises",":","ValueError",":","Missing","the","facets","key","in","the","data","."]
code: def _validate(self, json_data: dict):
      """Implement ParserBase._validate.
  
      Args:
          json_data (dict): Metric data to be validated.
  
      Raises:
          ValueError: Missing the facets key in the data.
      """
      for _, facets in json_data.items():
          if isinstance(facets, dict) and "facets" not in facets:
              raise ValueError(
                  f"Missing facets value from the clarify bias {facets}."
              )
  
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 ClarifyBiasParser obj's underlying member method code with example usage: obj._validate(json_data) without return types