That distinction is a bit muddy:
>>> import os >>> type(os.scandir) <class 'builtin_function_or_method'>