code: def get_extra(
      info,
      *,
      networkx_path=False,
      dispatch_name=False,
      version_added=False,
      plc=False,
      dispatch_name_if_different=False,
      incomplete=False,
      different=False,
  ):
      extra = []
      if networkx_path:
          extra.append(info.networkx_path)
      if dispatch_name and (
          not dispatch_name_if_different
          or info.dispatch_name != info.networkx_path.rsplit(".", 1)[-1]
      ):
          extra.append(info.dispatch_name)
      if version_added:
          v = info.version_added
          if len(v) != 5:
              raise ValueError(
                  f"Is there something wrong with version: {v!r}?"
              )
          extra.append(v[:2] + "." + v[-2:])
      if plc and info.plc:
          extra.append(info.plc)
      if incomplete and info.is_incomplete:
          extra.append("is-incomplete")
      if different and info.is_different:
          extra.append("is-different")
      return extra
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/scripts/print_tree.py
imports: import argparse
  import re
  import sys
  import networkx
  from nx_cugraph.scripts.print_table import get_path_to_info
label_desc: Use image node_id 2 for calling a global function with example usage: get_extra(info) and returns: extra