What does this code do?
That query looks in the procedure cache for a cached plan that contains the text StatRiskPrem_udf.  The result set will contain the following:


The object type that is cached
The cached object name
The amount of times the plan was used
The cached SQL text
The cached query plan


I would guess that the objective is to find out how many times that UDF was referenced.  I wouldn't say that's extremely accurate, though, because the procedure cache is a revolving door, especially under memory pressure.  But that's the gist of the query.