code: def tax_calculator(income, marital_status, assets):
      tax_brackets = [(10, 0), (25, 8), (60, 12), (120, 20), (250, 30)]
      total_deductible = sum(assets["Cost"])
      taxable_income = income - total_deductible
  
      total_tax = 0
      for bracket, rate in tax_brackets:
          if taxable_income > bracket:
              total_tax += (taxable_income - bracket) * rate / 100
  
      if marital_status == "Married":
          total_tax *= 0.75
      elif marital_status == "Divorced":
          total_tax *= 0.8
  
      return round(total_tax)
  
label_desc: Use image node_id 1 for calling a global function with example usage: tax_calculator(income, marital_status, assets) and returns: round