code: def test_names():
      """Test the regressor naming function"""
      name = "con"
      assert _regressor_names(name, "spm") == ["con"]
      assert _regressor_names(name, "spm_time") == [
          "con",
          "con_derivative",
      ]
      assert _regressor_names(name, "spm_time_dispersion") == [
          "con",
          "con_derivative",
          "con_dispersion",
      ]
      assert _regressor_names(name, "canonical") == ["con"]
      assert _regressor_names(name, "canonical with derivative") == [
          "con",
          "con_derivative",
      ]
  
imports: import warnings
  import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..hemodynamic_models import _hrf_kernel, _orthogonalize, _regressor_names, _resample_regressor, _sample_condition, compute_regressor, glover_hrf, glover_time_derivative, spm_dispersion_derivative, spm_hrf, spm_time_derivative
label_desc: Use image node_id 14 for calling a global function with example usage: test_names() without return types