code: def odd_option(empty_option_environment):
      def validator(x):
          if not x % 2 == 1:
              raise ValueError(f"Invalid option value {x}")
  
      cudf.options._register_option(
          "odd_option",
          1,
          "An odd option.",
          validator,
      )
      yield
      del cudf.options._OPTIONS["odd_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 2 for calling a global function with example usage: odd_option(empty_option_environment) without return types