code: def _get_sfs_idxs(sizes):
      "Get the indexes of the layers where the size of the activation changes."
      feature_szs = [size[-1] for size in sizes]
      sfs_idxs = list(
          np.where(
              np.array(feature_szs[:-1]) != np.array(feature_szs[1:])
          )[0]
      )
      if feature_szs[0] != feature_szs[1]:
          sfs_idxs = [0] + sfs_idxs
      return sfs_idxs
  
imports: import numpy
  import paddle
  import paddle.nn
  import paddle.nn.functional
  from paddle.vision.models import resnet101
  from .None import utils
label_desc: Use image node_id 8 for calling a global function with example usage: _get_sfs_idxs(sizes) and returns: sfs_idxs