input: Write a python function to generate a sales report from a CSV file with columns 'Region', 'Month', 'Sales', and 'Profit', grouping by 'Region' and 'Month', and calculating total sales, total profit, and maximum sales.
  assert generate_report(pd.DataFrame({
      'Region': ['East', 'East', 'West', 'West', 'East'],
      'Month': [1, 2, 1, 2, 1],
      'Sales': [100, 150, 200, 250, 300],
      'Profit': [10, 15, 20, 25, 30]
  })).equals(pd.DataFrame({
      'Total Sales': [400, 150, 200, 250],
      'Total Profit': [40, 15, 20, 25],
      'Max Sales': [300, 150, 200, 250]
  }, index=pd.MultiIndex.from_tuples([('East', 1), ('East', 2), ('West', 1), ('West', 2)])))
  
  assert generate_report(pd.DataFrame({
      'Region': ['North', 'North', 'South', 'South'],
      'Month': [1, 1, 2, 2],
      'Sales': [120, 180, 140, 160],
      'Profit': [12, 18, 14, 16]
  })).equals(pd.DataFrame({
      'Total Sales': [300, 300],
      'Total Profit': [30, 30],
      'Max Sales': [180, 160]
  }, index=pd.MultiIndex.from_tuples([('North', 1), ('South', 2)])))
output: def generate_report(df):
      grouped = df.groupby(['Region', 'Month']).agg(
          Total_Sales=('Sales', 'sum'),
          Total_Profit=('Profit', 'sum'),
          Max_Sales=('Sales', 'max')
      )
      return grouped