Given an array of integers nums, implement a function that processes the array to return a new array containing only positive integers while also handling edge cases such as empty arrays, arrays with all negative numbers, and arrays with mixed types (e.g., strings, None). The function should return an empty array if no positive integers are present.
Example 1:
Input: nums = [1, -2, 3, 0, -5]
Output: [1, 3]
Example 2:
Input: nums = [-1, -2, -3]
Output: []
Example 3:
Input: nums = []
Output: []
nums = [1, -2, 3, 0, -5]Output[1, 3]WhyOnly 1 and 3 are positive integers.nums = [-1, -2, -3]Output[]WhyNo positive integers are present.Input array can contain integers, strings, or NoneLength of the array can be up to 10^5def process_array(nums: list) -> list[int]: