code: def even_option(empty_option_environment):
      def validator(x):
          if not x % 2 == 0:
              raise ValueError(f"Invalid option value {x}")
  
      cudf.options._register_option(
          "even_option", 0, "An even option.", validator
      )
      yield
      del cudf.options._OPTIONS["even_option"]
  
file_path: cudf/python/cudf/cudf/tests/test_options.py
imports: from contextlib import redirect_stdout
  from io import StringIO
  import pytest
  import cudf
label_desc: Use image node_id 3 for calling a global function with example usage: even_option(empty_option_environment) without return types