code: def work_validate(self, work, hash):
          
  
          work = self._process_value(work, 'work')
          hash = self._process_value(hash, 'block')
  
          payload = {"work": work, "hash": hash}
  
          resp = self.call('work_validate', payload)
  
          return resp['valid'] == '1'
docs: Check whether **work** is valid for block
  
          :param work: Work to validate
          :type work: str
  
          :param hash: Hash of block to validate work for
          :type hash: str
  
          :raises: :py:exc:`nano.rpc.RPCException`
  
          >>> rpc.work_validate(
          ...     work="2bf29ef00786a6bc",
          ...     hash="718CC2121C3E641059BC1C2CFC45666C99E8AE922F7A807B7D07B62C995D79E2"
          ... )
          True