class_docstr: Base class for LIT metrics components.
class_docstr_tok: ["Base","class","for","LIT","metrics","components","."]
docstr: True if compatible with the prediction field and its parent.
docstr_tok: ["True","if","compatible","with","the","prediction","field","and","its","parent","."]
code: def is_field_compatible(
      self,
      pred_spec: types.LitType,
      parent_spec: Optional[types.LitType],
  ) -> bool:
      """True if compatible with the prediction field and its parent."""
      del pred_spec, parent_spec  # Unused in base class
      raise NotImplementedError(
          "Subclass should implement field compatibility."
      )
  
imports: import abc
  from collections.abc import Sequence
  import inspect
  from typing import Any, Optional
  from lit_nlp.api import dataset
  from lit_nlp.api import model
  from lit_nlp.api import types
label_desc: Use image node_id 3 for calling the Metrics obj's underlying member method code with example usage: obj.is_field_compatible(pred_spec, parent_spec) without return types