input: Write a python function to read a 2D array of numbers from a text file and compute the sum of each row in the array.
  assert sum_of_rows('arr.txt') == [10.0, 26.0, 15.0]  # assuming arr.txt contains "1 2 3 4\n5 6 7 8\n4 5 6"
  assert sum_of_rows('empty.txt') == []  # assuming empty.txt is an empty file
  assert sum_of_rows('single_row.txt') == [15.0]  # assuming single_row.txt contains "3 5 7"
output: def sum_of_rows(file_path):
      with open(file_path, 'r') as file:
          lines = file.readlines()
      row_sums = []
      for line in lines:
          if line.strip():
              numbers = map(float, line.split())
              row_sums.append(sum(numbers))
      return row_sums