code: def test_transfer_opts(
      element, opt, val, backend, opt_kind, transf_opt, transf_val
  ):
      current_backend = Store.current_backend
      if backend not in Store.registry:
          holoviews.extension(backend)
      Store.set_current_backend(backend)
      try:
          element = element.opts(backend="bokeh", **{opt: val})
          new_element = element.apply(_transfer_opts, backend=backend)
          new_opts = new_element.opts.get(opt_kind).kwargs
          if transf_opt is None:
              assert val not in new_opts.values()
          else:
              assert transf_opt in new_opts
              assert new_opts[transf_opt] == transf_val
      finally:
          Store.set_current_backend(current_backend)
  
file_path: hvplot/hvplot/tests/testbackend_transforms.py
imports: import holoviews
  import pytest
  from holoviews.core import Store
  from holoviews.element import Area, Curve
  from hvplot.backend_transforms import _transfer_opts, _transform_size_to_mpl, _is_interactive_opt
label_desc: Use image node_id 2 for calling a global function with example usage: test_transfer_opts(element, opt, val, backend, opt_kind, transf_opt, transf_val) without return types