def get_details(var):
var_data = {}<EOL>module = getattr(var, '<STR_LIT>', '<STR_LIT>')<EOL>kls = getattr(getattr(var, '<STR_LIT>', '<STR_LIT>'), '<STR_LIT>', '<STR_LIT>')<EOL>if module:<EOL><INDENT>var_data['<STR_LIT>'] = module<EOL><DEDENT>if kls:<EOL><INDENT>var_data['<STR_LIT>'] = kls<EOL><DEDENT>for attr in get_attributes(var):<EOL><INDENT>value = _get_detail_value(var, attr)<EOL>if value is not None:<EOL><INDENT>var_data[attr] = value<EOL><DEDENT><DEDENT>return var_data<EOL>
Given a variable inside the context, obtain the attributes/callables,
their values where possible, and the module name and class name if possible