code: def get_squeeze_axes(squeeze_mask, rank):
      """
      Utility function to get the squeeze_axes from squeeze_mask.
      i.e., returns a list of indices ``i`` where ``squeeze_mask[i] == True``.
      For instance, given ``squeeze_mask = [True, False, True]``,
      this utility returns ``[0, 2]``
      """
      if squeeze_mask is None:
          squeeze_mask = [False] * rank
      squeeze_axes = []
      for idx, mask in enumerate(squeeze_mask):
          if mask:
              squeeze_axes.append(idx)
      return squeeze_axes
  
imports: import math
  import numbers
  from typing import List, Tuple
  import numpy
  from coremltools.converters.mil.mil import Builder
  from coremltools.converters.mil.mil import Var, get_new_symbol, types
  from coremltools.converters.mil.mil.ops.defs.iOS15.elementwise_unary import cast
  from coremltools.converters.mil.mil.types import builtin_to_string, promote_dtypes
  from coremltools.converters.mil.mil.types.symbolic import is_symbolic
label_desc: Use image node_id 10 for calling a global function with example usage: get_squeeze_axes(squeeze_mask, rank) and returns: squeeze_axes