code: def _parse_ids(ids, info_dict):
      """Parse different formats of ``ids`` into the right dictionary format,
      potentially using the information in ``info_dict`` to complete it.
      """
      if ids is None:
          # Infer all id information from info_dict
          return {
              outer_key: inner_dict.keys()
              for outer_key, inner_dict in info_dict.items()
          }
      if isinstance(ids, str):
          # ids only provides a single argument name but no parameter indices
          return {ids: info_dict[ids].keys()}
      if not isinstance(ids, dict):
          # ids only provides argument names but no parameter indices
          return {_id: info_dict[_id].keys() for _id in ids}
  
      return ids
  
file_path: pennylane/pennylane/fourier/reconstruct.py
imports: from functools import wraps
  from inspect import signature
  import warnings
  import numpy
  from autoray import numpy
  import pennylane
label_desc: Use image node_id 3 for calling a global function with example usage: _parse_ids(ids, info_dict) and returns: ids, unknown, dict, unknown