I am working on modifying the bigip_license.py script that is available in the f5-ansible git repo.
Could not post this question because it was marked as spam, so I'm attempting to post a screen capture of what I wanted to post.
The entirety of the snippet that you posted exists between a matched set of triple-quotes.
(a bunch of code)
The contents of the set of triple-quotes is not assigned to a variable, so this should behave like a block comment. Nothing within them is being evaluated. That code appears to have been replaced by the try -> except block that follows the closing triple-quote. This try -> except block is used to make the code abstract and reusable.
The install_license() function in the class BigIpLicenseIControl calls get_license_activation_status() at line #212. That function is defined in the class BigIpLicenseCommon at line #144.
Is this the invocation that you are trying to locate? If not, reply to this thread and I'll bring it to the attention of the original code author.