code: async def verify_docker_worker_task(chain, link):
      
      if chain != link:
          # These two checks will die on `link.cot` if `link` is a ChainOfTrust
          # object (e.g., the task we're running `verify_cot` against is a
          # docker-worker task). So only run these tests if they are not the chain
          # object.
          check_interactive_docker_worker(link)
          verify_docker_image_sha(chain, link)
docs: Docker-worker specific checks.
  
      Args:
          chain (ChainOfTrust): the chain we're operating on
          link (ChainOfTrust or LinkOfTrust): the trust object for the signing task.
  
      Raises:
          CoTError: on failure.