parameters: (dimensions)
return_statement: return [int(d) if d.isdigit() else d for d in dimensions]
docstring: Returns list of all dimensions.
docstring_summary: Returns list of all dimensions.
docstring_tokens: Returns list of all dimensions .
function: def get_array_dimensions(dimensions):
      """Returns list of all dimensions."""
      dimensions = re.sub(r'^\[|\]$', '', dimensions).split('][')
      return [int(d) if d.isdigit() else d for d in dimensions]
function_tokens: def get_array_dimensions ( dimensions ) : dimensions = re . sub ( r'^\[|\]$' , '' , dimensions ) . split ( '][' ) return [ int ( d ) if d . isdigit ( ) else d for d in dimensions ]