code: def _correct_index(is_opt, is_dict, is_iter):
      if is_opt:
          return ["optional"]
      elif is_dict:
          return [str]
      elif is_iter:
          return [int]
      return []
  
file_path: ivy/ivy/utils/inspection.py
imports: from typing import get_type_hints
  import ivy
label_desc: Use image node_id 5 for calling a global function with example usage: _correct_index(is_opt, is_dict, is_iter) and returns: list, list, list, list