code: def validator_max(request):
      return NumberValidator("prop", "parent", max=2.0)
  
imports: import pytest
  from pytest import approx
  from _plotly_utils.basevalidators import NumberValidator
  import numpy
  import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: validator_max(request) and returns: NumberValidator