code: def test_budget_scopes_no_parentscope(self):
      budget_accountant = NaiveBudgetAccountant(
          total_epsilon=1, total_delta=1e-6
      )
  
      # Allocated in the top-level scope with no weight specified
      budget1 = budget_accountant.request_budget(
          mechanism_type=MechanismType.LAPLACE
      )
  
      with budget_accountant.scope(weight=0.5):
          budget2 = budget_accountant.request_budget(
              mechanism_type=MechanismType.LAPLACE
          )
  
      budget_accountant.compute_budgets()
  
      self.assertEqual(budget1.eps, 1.0 / (1.0 + 0.5))
      self.assertEqual(budget2.eps, 0.5 / (1.0 + 0.5))
  
imports: import sys
  import unittest
  from dataclasses import dataclass
  from pipeline_dp.budget_accounting import MechanismSpec
  from pipeline_dp.aggregate_params import MechanismType
  from pipeline_dp.budget_accounting import NaiveBudgetAccountant
  from pipeline_dp.budget_accounting import PLDBudgetAccountant
  from absl.testing import parameterized
label_desc: Use image node_id 5 for calling the NaiveBudgetAccountantTest obj's underlying member method code with example usage: obj.test_budget_scopes_no_parentscope() without return types