code: def filter_attrs(module, attrs):
      return list(
          attrname for attrname in attrs if hasattr(module, attrname)
      )
  
file_path: apex/apex/amp/compat.py
imports: import torch
label_desc: Use image node_id 7 for calling a global function with example usage: filter_attrs(module, attrs) and returns: list