code: def validator():
      return StringValidator("prop", "parent")
  
imports: import pytest
  from _plotly_utils.basevalidators import StringValidator
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: validator() and returns: StringValidator