code: def get_code_hash(code: str) -> str:
      
      code = code[2:] if code[:2] == "0x" else code
      try:
          keccak = sha3.keccak_256()
          keccak.update(bytes.fromhex(code))
          return "0x" + keccak.hexdigest()
      except ValueError:
          log.debug("Unable to change the bytecode to bytes. Bytecode: {}".format(code))
          return ""
docs: :param code: bytecode
      :return: Returns hash of the given bytecode