code: def _check_compute_for(compute_for: Union[str, ComputeFor]) -> str:
      if not compute_for:
          compute_for = Predictions
      if isinstance(compute_for, str):
          compute_for = compute_for.lower().strip()
          compute_for = ComputeFor(compute_for)
      return _ACCEPTED_COMPUTE_FOR_VALUES[compute_for]
  
imports: import warnings
  from enum import Enum
  from typing import Optional, Set, Union
  import deprecated
  from argilla.client import singleton
  from argilla.metrics import helpers
  from argilla.metrics.models import MetricSummary
label_desc: Use image node_id 5 for calling a global function with example usage: _check_compute_for(compute_for) and returns: _ACCEPTED_COMPUTE_FOR_VALUES