Top level function vs class method detection

Is there a way for SQ to detect top-level functions vs class methods in languages like JS, TS, Python, etc.? We’re tying to count the number of methods per class, but the results are skewed by the fact that some of these languages use top-level functions that don’t have to be in a class.


We don’t calculate metrics on that.