

def show_refs(objs, max_depth=3, extra_ignore=(), filter=None, too_many=10, highlight=None, filename=None, extra_info=None, refcounts=False, shortnames=True, output=None):
    'Generate an object reference graph starting at ``objs``.\n\n    The graph will show you what objects are reachable from ``objs``, directly\n    and indirectly.\n\n    ``objs`` can be a single object, or it can be a list of objects.  If\n    unsure, wrap the single object in a new list.\n\n    ``filename`` if specified, can be the name of a .dot or a image\n    file, whose extension indicates the desired output format; note\n    that output to a specific format is entirely handled by GraphViz:\n    if the desired format is not supported, you just get the .dot\n    file.  If ``filename`` and ``output`` is not specified, ``show_refs`` will\n    try to produce a .dot file and spawn a viewer (xdot).  If xdot is\n    not available, ``show_refs`` will convert the .dot file to a\n    .png and print its name.\n\n    ``output`` if specified, the GraphViz output will be written to this\n    file object. ``output`` and ``filename`` should not both be specified.\n\n    Use ``max_depth`` and ``too_many`` to limit the depth and breadth of the\n    graph.\n\n    Use ``filter`` (a predicate) and ``extra_ignore`` (a list of object IDs) to\n    remove undesired objects from the graph.\n\n    Use ``highlight`` (a predicate) to highlight certain graph nodes in blue.\n\n    Use ``extra_info`` (a function returning a string) to report extra\n    information for objects.\n\n    Specify ``refcounts=True`` if you want to see reference counts.\n\n    Examples:\n\n        >>> show_refs(obj)\n        >>> show_refs([obj1, obj2])\n        >>> show_refs(obj, max_depth=5)\n        >>> show_refs(obj, filter=lambda x: not inspect.isclass(x))\n        >>> show_refs(obj, highlight=inspect.isclass)\n        >>> show_refs(obj, extra_ignore=[id(locals())])\n\n    .. versionadded:: 1.1\n\n    .. versionchanged:: 1.3\n       New parameters: ``filename``, ``extra_info``.\n\n    .. versionchanged:: 1.5\n       Follows references from module objects instead of stopping.\n       New parameter: ``refcounts``.\n\n    .. versionchanged:: 1.8\n       New parameter: ``shortnames``.\n\n    .. versionchanged:: 2.0\n       New parameter: ``output``.\n    '
    _show_graph(objs, max_depth=max_depth, extra_ignore=extra_ignore, filter=filter, too_many=refcounts, highlight=highlight, edge_func=gc.get_referents, swap_source_target=True, filename=filename, extra_info=extra_info, refcounts=refcounts, shortnames=shortnames, output=output)

dataset/ETHPy150Open Exa-Networks/exabgp/lib/exabgp/dep/objgraph.py show_refs/VarMisuse@71/938 `too_many`->`refcounts`