code: def delete_nth_naive(array, n):
      ans = []
      for num in array:
          if ans.count(num) < n:
              ans.append(num)
      return ans
  
label_desc: Use image node_id 1 for calling a global function with example usage: delete_nth_naive(array, n) and returns: ans