code: def pytest_addoption(parser):
      """Adds remote-related flags to selectively disable/enable for tests
      Eg: If some remotes, eg: ssh is enabled to be tested for by default
      (see above `REMOTES`), then, `--disable-ssh` flag is added. If remotes
      like `hdfs` are disabled by default, `--enable-hdfs` is added to make them
      run.
  
      You can also make everything run-by-default with `--all` flag, which takes
      precedence on all previous `--enable-*`/`--disable-*` flags.
      """
      parser.addoption(
          "--all",
          action="store_true",
          default=False,
          help="Test all of the remotes, unless other flags also supplied",
      )
      for remote_name in REMOTES:
          for action in ("enable", "disable"):
              opt = _get_opt(remote_name, action)
              parser.addoption(
                  opt,
                  action="store_true",
                  default=None,
                  help=f"{action} tests for {remote_name}",
              )
  
imports: import json
  import os
  import sys
  from contextlib import suppress
  import pytest
  from dvc import env
  from dvc.stage import PipelineStage
  from dvc.testing.fixtures import *
  from .dir_helpers import *
  from .remotes import *
  from .scripts import *
label_desc: Use image node_id 5 for calling a global function with example usage: pytest_addoption(parser) without return types