code: def mine_block(chain: MiningChain, **kwargs: Any) -> MiningChain:
      
      if not isinstance(chain, MiningChain):
          raise ValidationError('`mine_block` may only be used on MiningChain instances')
      chain.mine_block(**kwargs)
      return chain
docs: Mine a new block on the chain.  Header parameters for the new block can be
      overridden using keyword arguments.