code: def rewrite_nas_space(func):
      @functools.wraps(func)
      def wrap(self, search_space):
          search_space = convert_nas_search_space(search_space)
          return func(self, search_space)
  
      return wrap
  
file_path: nni/nni/common/nas_utils.py
imports: import functools
  import logging
  from ..None import trial
label_desc: Use image node_id 12 for calling a global function with example usage: rewrite_nas_space(func) and returns: wrap, func