code: def test_target_type_validate_valid(val):
      try:
          TargetType.validate(val)
      except YellowbrickValueError:
          pyetst.fail("valid target type raised validation error")
  
file_path: yellowbrick/tests/test_utils/test_target.py
imports: import pytest
  import numpy
  from yellowbrick.utils.target import *
  from yellowbrick.exceptions import YellowbrickValueError
  from sklearn.datasets import make_regression, make_classification
label_desc: Use image node_id 4 for calling a global function with example usage: test_target_type_validate_valid(val) without return types