Import inspect to inspect the arg spec for the function attribute