code: def hash_script(data):
          
          sha256 = hashlib.sha256()
          ripemd = hashlib.new('ripemd160')
  
          sha256.update(data)
          ripemd.update(sha256.digest())
          return ripemd.digest()
docs: Hashes a script into an asset ID using SHA256 followed by RIPEMD160.
  
          :param bytes data: The data to hash.