CodeQL library for Python
codeql/python-all 0.11.13 (changelog, source)

Predicate Value::named

Gets the Value named name. If there is at least one ‘.’ in name, then the part of the name to the left of the rightmost ‘.’ is interpreted as a module name and the part after the rightmost ‘.’ as an attribute of that module. For example, Value::named("os.path.join") is the Value representing the join function of the os.path module. If there is no ‘.’ in name, then the Value returned is the builtin object of that name. For example Value::named("len") is the Value representing the len built-in function.

Import path

import python
Value named(string name)