import type_of function name into local scope