code: def test_func(self):
      @func()
      def dummy_func(arg1=None, arg2=None):
          return arg1, arg2
  
      range_arg1 = (randrange(10, 20), randrange(100, 200))
      range_arg2 = (randrange(10, 20), randrange(100, 200))
      autofunc = dummy_func(
          arg1=space.Int(range_arg1[0], range_arg1[1]),
          arg2=space.Int(range_arg2[0], range_arg2[1]),
      )
      assert autofunc
  
      arg1, arg2 = autofunc.sample()
      assert arg1 >= range_arg1[0] and arg1 <= range_arg1[1]
      assert arg2 >= range_arg2[0] and arg2 <= range_arg2[1]
  
file_path: BigDL/python/nano/test/automl/common/test_decorator.py
imports: import pytest
  from unittest import TestCase
  from random import randrange
  from bigdl.nano.automl.hpo.decorator import *
  import bigdl.nano.automl.hpo.space
label_desc: Use image node_id 1 for calling the TestHPODecorator obj's underlying member method code with example usage: obj.test_func() and returns: arg1,  arg2