code: def clean_inputs(minimum, maximum, value, variable_name):
      if value is None:
          value = maximum
      elif not isinstance(value, int):
          raise InvalidArgument(
              "Expected integer but %s is a %s"
              % (variable_name, type(value).__name__)
          )
      elif not minimum <= value <= maximum:
          raise InvalidArgument(
              "Invalid value %r < %s=%r < %r"
              % (minimum, variable_name, value, maximum)
          )
      return value
  
file_path: catboost/contrib/python/hypothesis/py2/hypothesis/provisional.py
imports: from __future__ import absolute_import, division, print_function
  import os.path
  import string
  import importlib_resources
  import hypothesis.internal.conjecture.utils
  import hypothesis.strategies._internal.core
  from hypothesis.errors import InvalidArgument
  from hypothesis.strategies._internal.strategies import SearchStrategy
label_desc: Use image node_id 1 for calling the DomainNameStrategy obj's underlying member method code with example usage: obj.clean_inputs(minimum, maximum, value, variable_name) and returns: value