<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getMaskIndices(mask):
 """get lower and upper index of mask"""

  return [
    list(mask).index(True), len(mask) - 1 - list(mask)[::-1].index(True)
  ]