code: def ensure_data_valid(self, data: Dict[str, Any]) -> None:
      if self.params.label_fields:
          if not all(
              i in data.keys() for i in self.params.label_fields
          ):
              raise ValueError(
                  "Your 'label_fields' are not valid - them must have same names as params in "
                  "'keypoint_params' dict"
              )
  
imports: from __future__ import division
  import math
  import typing
  import warnings
  from typing import Any, Dict, List, Optional, Sequence, Tuple
  from .utils import DataProcessor, Params
label_desc: Use image node_id 3 for calling the KeypointsProcessor obj's underlying member method code with example usage: obj.ensure_data_valid(data) without return types