code: def test_dvc_sets_some_options_on_less_if_less_env_defined(
      mocker, monkeypatch, env
  ):
      if env:
          monkeypatch.setenv(env, "less")
      mocker.patch("sys.stdout.isatty", return_value=True)
      mocker.patch("os.system", return_value=0)
      monkeypatch.setenv(LESS, "-R")
  
      assert (
          find_pager() == "less --RAW-CONTROL-CHARS --chop-long-lines"
      )
  
file_path: dvc/tests/unit/ui/test_pager.py
imports: import pytest
  from dvc.env import DVC_PAGER
  from dvc.ui.pager import DEFAULT_PAGER, LESS, PAGER_ENV, find_pager, make_pager, pager
label_desc: Use image node_id 8 for calling a global function with example usage: test_dvc_sets_some_options_on_less_if_less_env_defined(mocker, monkeypatch, env) without return types