How to collect all static attributes that are used in Analyses?

Hello,

I would like to gather all attributes that are with None data reference.

Please share any sample script, if possible

 

Thanks,

piyush