class_docstr: Base class for representing metrics.
  
  The `fetch_trial_data` method is the essential method to override when
  subclassing, which specifies how to retrieve a Metric, for a given trial.
  
  A Metric must return a Data object, which requires (at minimum) the following:
      https://ax.dev/api/_modules/ax/core/data.html#Data.required_columns
  
  Attributes:
      lower_is_better: Flag for metrics which should be minimized.
      properties: Properties specific to a particular metric.
class_docstr_tok: ["Base","class","for","representing","metrics",".","The","`","fetch_trial_data","`","method","is","the","essential","method","to","override","when","subclassing",",","which","specifies","how","to","retrieve","a","Metric",",","for","a","given","trial",".","A","Metric","must","return","a","Data","object",",","which","requires","(","at","minimum",")","the","following",":","https",":","\/\/ax.dev\/api\/_modules\/ax\/core\/data.html","#","Data.required_columns","Attributes",":","lower_is_better",":","Flag","for","metrics","which","should","be","minimized",".","properties",":","Properties","specific","to","a","particular","metric","."]
docstr: Whether metrics of this class are available while the trial is running.
  Metrics that are not available while the trial is running are assumed to be
  available only upon trial completion. For such metrics, data is assumed to
  never change once the trial is completed.
  
  NOTE: If this method returns `False`, data-fetching via `experiment.fetch_data`
  will return the data cached on the experiment (for the metrics of the given
  class) whenever its available. Data is cached on experiment when attached
  via `experiment.attach_data`.
docstr_tok: ["Whether","metrics","of","this","class","are","available","while","the","trial","is","running",".","Metrics","that","are","not","available","while","the","trial","is","running","are","assumed","to","be","available","only","upon","trial","completion",".","For","such","metrics",",","data","is","assumed","to","never","change","once","the","trial","is","completed",".","NOTE",":","If","this","method","returns","`","False","`",",","data-fetching","via","`","experiment.fetch_data","`","will","return","the","data","cached","on","the","experiment","(","for","the","metrics","of","the","given","class",")","whenever","its","available",".","Data","is","cached","on","experiment","when","attached","via","`","experiment.attach_data","`","."]
code: def is_available_while_running(cls) -> bool:
      """Whether metrics of this class are available while the trial is running.
      Metrics that are not available while the trial is running are assumed to be
      available only upon trial completion. For such metrics, data is assumed to
      never change once the trial is completed.
  
      NOTE: If this method returns `False`, data-fetching via `experiment.fetch_data`
      will return the data cached on the experiment (for the metrics of the given
      class) whenever its available. Data is cached on experiment when attached
      via `experiment.attach_data`.
      """
      return False
  
imports: from __future__ import annotations
  import traceback
  import warnings
  from dataclasses import dataclass
  from functools import reduce
  from logging import Logger
  from typing import Any, Dict, Iterable, List, Mapping, Optional, Tuple, Type, TYPE_CHECKING
  from ax.core.data import Data
  from ax.utils.common.base import SortableBase
  from ax.utils.common.logger import get_logger
  from ax.utils.common.result import Err, Ok, Result, UnwrapError
  from ax.utils.common.serialization import SerializationMixin
label_desc: Use image node_id 2 for calling the Metric obj's underlying member method code with example usage: obj.is_available_while_running(cls) and returns: False