code: def _max_examples_validator(x):
      x = _ensure_positive_int(
          x, "max_examples", since="2019-03-06", min_value=0
      )
      if x == 0:
          note_deprecation(
              "max_examples=%r should be at least one. You can disable example "
              "generation with the `phases` setting instead." % (x,),
              since="2019-03-06",
          )
      return x
  
imports: from __future__ import absolute_import, division, print_function
  import contextlib
  import datetime
  import inspect
  import threading
  import warnings
  from enum import Enum, IntEnum, unique
  import attr
  from hypothesis.errors import HypothesisDeprecationWarning, InvalidArgument, InvalidState
  from hypothesis.internal.compat import integer_types, quiet_raise, string_types
  from hypothesis.internal.reflection import get_pretty_function_description
  from hypothesis.internal.validation import check_type, try_convert
  from hypothesis.utils.conventions import UniqueIdentifier, not_set
  from hypothesis.utils.dynamicvariables import DynamicVariable
label_desc: Use image node_id 3 for calling a global function with example usage: _max_examples_validator(x) and returns: x