docstr: return info dicts for specified keys (or all if None) at specified indices (or out_indices if None)
docstr_tok: ["return","info","dicts","for","specified","keys","(","or","all","if","None",")","at","specified","indices","(","or","out_indices","if","None",")"]
code: def get_dicts(self, keys=None, idx=None):
      """return info dicts for specified keys (or all if None) at specified indices (or out_indices if None)"""
      if idx is None:
          if keys is None:
              return [self.info[i] for i in self.out_indices]
          else:
              return [
                  {k: self.info[i][k] for k in keys}
                  for i in self.out_indices
              ]
      if isinstance(idx, (tuple, list)):
          return [
              self.info[i]
              if keys is None
              else {k: self.info[i][k] for k in keys}
              for i in idx
          ]
      else:
          return (
              self.info[idx]
              if keys is None
              else {k: self.info[idx][k] for k in keys}
          )
  
imports: from collections import OrderedDict, defaultdict
  from copy import deepcopy
  from functools import partial
  from typing import Dict, List, Tuple
  import torch
  import torch.nn
label_desc: Use image node_id 4 for calling the FeatureInfo obj's underlying member method code with example usage: obj.get_dicts(keys, idx) and returns: unknown, unknown, unknown, unknown