code: def find_indices(condition):
      "Return the indices where ravel(condition) is true"
      (res,) = np.nonzero(np.ravel(condition))
      return res
  
file_path: nipype/nipype/utils/misc.py
imports: import os
  import sys
  import re
  from collections.abc import Iterator
  from warnings import warn
  from looseversion import LooseVersion
  import numpy
  import textwrap
label_desc: Use image node_id 3 for calling a global function with example usage: find_indices(condition) and returns: res