input: Write a function in Python called `get_average_salary` that takes a file name as input and returns the average salary from the 'salary.csv' dataset. The function should read the CSV file, skip the header, and compute the average of the salary values. If the CSV file is empty, the function should return 0.
  
  assert get_average_salary('salary.csv')==2000.0
  assert get_average_salary('empty.csv')==0
  assert get_average_salary('salary_one_record.csv')==1000.0
output: def get_average_salary(file_name):
      try:
          with open(file_name, 'r') as file:
              reader = csv.reader(file)
              next(reader)  # Skip the header
              salaries = [float(row[0]) for row in reader]
              if not salaries:
                  return 0
              return sum(salaries) / len(salaries)
      except FileNotFoundError:
          return 0