class_docstr: Interface defining Metrics' API.
docstr: A helper to avoid polluting test outputs with warnings.
docstr_tok: ["A","helper","to","avoid","polluting","test","outputs","with","warnings","."]
code: def disable_warnings(self) -> bool:
      """A helper to avoid polluting test outputs with warnings."""
      return (
          self._disable_warnings
          # Don't show progress bar in github actions.
          or "GITHUB_ACTIONS" not in os.environ
          # Don't show progress bar when running unit tests.
          or "PYTEST" in os.environ
      )
  
imports: from __future__ import annotations
  import functools
  import logging
  import os
  import sys
  from abc import abstractmethod
  from typing import Any, Callable, ClassVar, Dict, Generator, Generic, Sequence, Set, TypeVar, Optional, Union, TYPE_CHECKING, no_type_check
  import matplotlib.pyplot
  import numpy
  from sklearn.utils import gen_batches
  from tqdm.auto import tqdm
  from quantus.helpers import asserts, utils, warn
  from quantus.functions.normalise_func import normalise_by_max
  from quantus.helpers.enums import DataType, EvaluationCategory, ModelType, ScoreDirection
  from quantus.helpers.model.model_interface import ModelInterface
label_desc: Use image node_id 15 for calling the Metric obj's underlying member method code with example usage: obj.disable_warnings() and returns: unknown