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