code: def __init__(self, nums):
      """
      initialize your data structure here.
      :type nums: List[int]
      """
      self.res = [0] * (len(nums) + 1)
      self.data = list(nums)
      for i in range(len(self.data)):
          self.res[i + 1] = self.res[i] + nums[i]
  
label_desc: Use image node_id 1 to create a new NumArray object from inherited base classes: object with example: obj = NumArray(nums)