code: def blacklistNode(self, nodeName: str, reason: str = None, code: int = None):
          
          msg = "{} blacklisting node {}".format(self, nodeName)
          if reason:
              msg += " for reason {}".format(reason)
          if code:
              msg += " for code {}".format(code)
          logger.display(msg)
          self.nodeBlacklister.blacklist(nodeName)
docs: Add the node specified by `nodeName` to this node's blacklist