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