code: def check_path_consistency(self, resource):
          '''Path arguments must be consistent for all methods.'''
          msg = ('Method "{}" path variables {}) do not conform with the '
                 'resource subpath declaration ({}).')
          errors = []
          # If subpath is not set, it will be detected by another checker
          if resource.subpath is None:
              return errors
          declared = sorted(self.path_params_regex.findall(resource.subpath))
          for callback in resource.callbacks:
              actual = sorted(utils.filter_annotations_by_ptype(
                  callback, Ptypes.path))
              if declared == actual:
                  continue
              errors.append(msg.format(
                  '{}.{}'.format(resource.__name__, callback.__name__),
                  actual, resource.subpath))
          return errorf check_path_consistency(self, resource):
          '''Path arguments must be consistent for all methods.'''
          msg = ('Method "{}" path variables {}) do not conform with the '
                 'resource subpath declaration ({}).')
          errors = []
          # If subpath is not set, it will be detected by another checker
          if resource.subpath is None:
              return errors
          declared = sorted(self.path_params_regex.findall(resource.subpath))
          for callback in resource.callbacks:
              actual = sorted(utils.filter_annotations_by_ptype(
                  callback, Ptypes.path))
              if declared == actual:
                  continue
              errors.append(msg.format(
                  '{}.{}'.format(resource.__name__, callback.__name__),
                  actual, resource.subpath))
          return errors
docs: Path arguments must be consistent for all methods.