input: Write a function to generate a two-dimensional array with zeros given the number of rows and columns. The function should return the generated array. If either the number of rows or columns is zero, the function should return an empty list.
  
  def generate_zeros_array(row, col):
      if row == 0 or col == 0:
          return []
      return [[0] * col for _ in range(row)]
  
  assert generate_zeros_array(3, 3) == [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
  assert generate_zeros_array(2, 4) == [[0, 0, 0, 0], [0, 0, 0, 0]]
  assert generate_zeros_array(0, 5) == []
  assert generate_zeros_array(4, 0) == []
  assert generate_zeros_array(0, 0) == []
output: def generate_zeros_array(row, col):
      if row == 0 or col == 0:
          return []
      return [[0] * col for _ in range(row)]