code: def maxProperties(validator, mP, instance, schema):
      if not validator.is_type(instance, "object"):
          return
      if validator.is_type(instance, "object") and len(instance) > mP:
          yield ValidationError(
              "%r has too many properties" % (instance,)
          )
  
imports: import re
  from jsonschema._utils import ensure_list, equal, extras_msg, find_additional_properties, types_msg, unbool, uniq
  from jsonschema.exceptions import FormatError, ValidationError
  from jsonschema.compat import iteritems
label_desc: Use image node_id 27 for calling a global function with example usage: maxProperties(validator, mP, instance, schema) without return types