code: def validator_re():
      values = ["foo", "/bar(\d)+/", "baz"]
      return EnumeratedValidator(
          "prop", "parent", values, array_ok=False
      )
  
file_path: plotly.py/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py
imports: import pytest
  import numpy
  import pandas
  from _plotly_utils.basevalidators import EnumeratedValidator
label_desc: Use image node_id 2 for calling a global function with example usage: validator_re() and returns: EnumeratedValidator