code: def visible_attrs(obj, attrs=None):
      if attrs is None:
          attrs = {}
      for attr_name, attr in inspect.getmembers(obj):
          if attr_name.startswith("_"):
              continue
          attrs[attr_name] = attr
      return attrs
  
file_path: catboost/contrib/python/tenacity/py2/tenacity/_utils.py
imports: import inspect
  import sys
  import time
  from functools import update_wrapper
  import six
label_desc: Use image node_id 1 for calling a global function with example usage: visible_attrs(obj, attrs) and returns: attrs