code: def resultset_to_g_structured_item(
      edges: List,
      edges_hits: Set[str],
      nodes: List,
      nodes_hits: Set[str],
      item,
      ignore_errors,
  ) -> bool:
      """
      Return true if matched
      """
      if isinstance(item, Edge):
          flatten_edge_structure_adder(edges, edges_hits, item)
          flatten_vertex_structure_adder(nodes, nodes_hits, item.inV)
          flatten_vertex_structure_adder(nodes, nodes_hits, item.outV)
          return True
  
      if isinstance(item, Vertex):
          flatten_vertex_structure_adder(nodes, nodes_hits, item)
          return True
  
      if isinstance(item, Path):
          for path_obj in item.objects:
              if isinstance(path_obj, Edge):
                  flatten_edge_structure_adder(
                      edges, edges_hits, path_obj
                  )
                  flatten_vertex_structure_adder(
                      nodes, nodes_hits, path_obj.inV
                  )
                  flatten_vertex_structure_adder(
                      nodes, nodes_hits, path_obj.outV
                  )
              elif isinstance(path_obj, Vertex):
                  flatten_vertex_structure_adder(
                      nodes, nodes_hits, path_obj
                  )
              else:
                  if ignore_errors:
                      logger.info(
                          "Supressing path error for step :: %s",
                          type(path_obj),
                          exc_info=True,
                      )
                  raise ValueError("unexpected Path step:", path_obj)
          return True
  
      return False
  
imports: from typing import Any, Callable, Iterable, List, Optional, Set, Union, TYPE_CHECKING
  import os, pandas
  from .Plottable import Plottable
  from .util import setup_logger
label_desc: Use image node_id 15 for calling a global function with example usage: resultset_to_g_structured_item(edges, edges_hits, nodes, nodes_hits, item, ignore_errors) and returns: False, True, True, True