code: def check_has_path(self, api):
          '''An API class must have a `path` attribute.'''
          if not hasattr(api, 'path'):
              msg = 'The Api class "{}" lacks a `path` attribute.'
              return [msg.format(api.__name__)f check_has_path(self, api):
          '''An API class must have a `path` attribute.'''
          if not hasattr(api, 'path'):
              msg = 'The Api class "{}" lacks a `path` attribute.'
              return [msg.format(api.__name__)]
docs: An API class must have a `path` attribute.