code: def search_range(nums, target):
      """
      :type nums: List[int]
      :type target: int
      :rtype: List[int]
      """
      low = 0
      high = len(nums) - 1
      # breaks at low == high
      # both pointing to first occurence of target
      while low < high:
          mid = low + (high - low) // 2
          if target <= nums[mid]:
              high = mid
          else:
              low = mid + 1
  
      for j in range(len(nums) - 1, -1, -1):
          if nums[j] == target:
              return [low, j]
  
      return [-1, -1]
  
label_desc: Use image node_id 1 for calling a global function with example usage: search_range(nums, target) and returns: list, list