docs: def _setup_rpc(self):
          """Setup the RPC client for the current agent."""
          self._state_rpc = agent_rpc.PluginReportStateAPI(topics.REPORTS)
          report_interval = CONF.AGENT.report_interval
          if report_interval:
              heartbeat = loopingcall.FixedIntervalLoopingCall(
                  self._report_state)
              heartbeat.start(interval=report_interval)