Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Get next mpi values from region as according to key_algorithm
Decrypt those mpis and then parse them as
0x2 | random bytes | 0x0 | result

The result will then be
algorithm | session_key | checksum

These values are retrieved from result and returned.
If, however, mpis don't follow pattern above, then random bytes are used instead

src/g/p/gpglib-HEAD/gpglib/content_parsers/session_keys.py   gpglib(Download)
        # Use PKCS to consume the region and decrypt it
        algo, session_key, checksum = PKCS.consume(region, key_algorithm, key)
        # Generate a checksum from the session_key (section 5.1 in the RFC).