code: def _raise_invalid_use_of_beta(name, kwargs):
      if "beta" in kwargs:
          raise ValueError(
              f"The use of the `beta` argument with {name} is invalid. Use FBeta instead."
          )
  
imports: import warnings
  from typing import List, Optional, Tuple, Union
  import torch
  from poutyne.framework.metrics.base import Metric
  from poutyne.framework.metrics.metrics_registering import register_metric_class
  from poutyne.framework.metrics.predefined.bincount import _bincount
  from poutyne.utils import set_deterministic_debug_mode
label_desc: Use image node_id 2 for calling a global function with example usage: _raise_invalid_use_of_beta(name, kwargs) without return types