code: def test_set_metadata_supervised(task):
      """Test check_set_metadata."""
      check_set_metadata(task, "class_val", gunpoint)
  
imports: import pytest
  from pytest import raises
  from sktime.benchmarking.tasks import BaseTask, TSCTask, TSRTask
  from sktime.datasets import load_gunpoint, load_shampoo_sales
label_desc: Use image node_id 4 for calling a global function with example usage: test_set_metadata_supervised(task) without return types