docs: def capability(self) -> Dict[str, Any]:
          """Return the capabilities of the printer."""
          try:
              return self.data.get('capability', {})
          except (KeyError, AttributeError):
              return {}