code: def extras_msg(extras):
      """
      Create an error message for extra items or properties.
      """
  
      if len(extras) == 1:
          verb = "was"
      else:
          verb = "were"
      return ", ".join(repr(extra) for extra in extras), verb
  
imports: import itertools
  import json
  import pkgutil
  import re
  from jsonschema.compat import MutableMapping, str_types, urlsplit
label_desc: Use image node_id 5 for calling a global function with example usage: extras_msg(extras) and returns: str,  verb