code: def require(
      requirement: Optional[Union[str, Sequence[str]]] = None,
      experiment: Optional[Union[str, Sequence[str]]] = None,
  ) -> None:
      """Indicate which experimental features are used by the script.
  
      Args:
          requirement: (str or list) Features to require
          experiment: (str or list) Features to require
  
      Raises:
          wandb.errors.UnsupportedError: if not supported
      """
      features = requirement or experiment
      if not features:
          return
  
      f = _Requires(features=features)
      f.apply()
  
file_path: wandb/wandb/sdk/wandb_require.py
imports: from typing import Optional, Sequence, Union
  import wandb
  from wandb.errors import UnsupportedError
  from wandb.sdk import wandb_run
  from wandb.sdk.lib.wburls import wburls
label_desc: Use image node_id 1 for calling a global function with example usage: require(requirement, experiment) without return types