code: def setNumberRange(key, keyType, start, end):
      """check number range"""
      return And(
          And(
              keyType, error=SCHEMA_TYPE_ERROR % (key, keyType.__name__)
          ),
          And(
              lambda n: start <= n <= end,
              error=SCHEMA_RANGE_ERROR
              % (key, "(%s,%s)" % (start, end)),
          ),
      )
  
imports: import json
  import os
  from schema import And, Optional, Or, Regex, Schema, SchemaError
  from nni.tools.package_utils.tuner_factory import create_validator_instance
  from .common_utils import get_yml_content, print_warning
  from .constants import SCHEMA_PATH_ERROR, SCHEMA_RANGE_ERROR, SCHEMA_TYPE_ERROR
label_desc: Use image node_id 3 for calling a global function with example usage: setNumberRange(key, keyType, start, end) and returns: And