class_docstr: View for node attributes which are arbitrary objects.
class_docstr_tok: ["View","for","node","attributes","which","are","arbitrary","objects","."]
code: def __getitem__(self, item: Any) -> Any:
      total_attrs = self._graph.get_node_attrs(self._nodes)
      filtered_attrs = dict()
      for k, v in total_attrs.items():
          if item in v:
              filtered_attrs[k] = v[item]
      return filtered_attrs
  
imports: from collections import namedtuple
  from typing import Any, List, Union
  import torch
  from .utils import slice_to_list
label_desc: Use image node_id 2 for calling the NodeAttrView obj's underlying member method code with example usage: obj.__getitem__(item) and returns: filtered_attrs