input: Write a function to create a dictionary where the keys are numbers between 1 and 15 (both included) and the values are squares of the keys. If the dictionary is successfully created, return the dictionary. If the input range is invalid or empty, return an empty dictionary.
  assert create_squares_dict(15)=={1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100, 11: 121, 12: 144, 13: 169, 14: 196, 15: 225}
  assert create_squares_dict(0)=={}
  assert create_squares_dict(20)=={}
  assert create_squares_dict(-5)=={}
  assert create_squares_dict(10)=={1: 1, 2: 4, 3: 9, 4: 16, 5: 25, 6: 36, 7: 49, 8: 64, 9: 81, 10: 100}
output: def create_squares_dict(n):
      if n < 1 or n > 15:
          return {}
      return {i: i**2 for i in range(1, n+1)}