code: def check_restrictions(restrictions, element, keys, verbose):
      
      params = OrderedDict(zip(keys, element))
      for restrict in restrictions:
          if not eval(replace_param_occurrences(restrict, params)):
              if verbose:
                  print("skipping config", get_instance_string(params), "reason: config fails restriction")
              return False
      return True
docs: check whether a specific instance meets the search space restrictions