class_docstr: Transforms arguments of type `NamedDistribution`.
  
  Convert all arguments of type `NamedDistribution` to the value of their
  `strategy` property.
class_docstr_tok: ["Transforms","arguments","of","type","`","NamedDistribution","`",".","Convert","all","arguments","of","type","`","NamedDistribution","`","to","the","value","of","their","`","strategy","`","property","."]
code: def modified_arguments(self, kwargs, requested_parameters):
      # Get the parameter that indicates if we need to set the `_use_policy` flag
      # on the strategy object. This is a temporary flag for testing the variable
      # policy rollout.
      use_var_policy = kwargs.get("use_var_policy", None)
      distribution_arguments = {}
      for k, v in kwargs.items():
          if isinstance(v, NamedDistribution):
              strategy = v.strategy
              if use_var_policy:
                  strategy.extended._use_var_policy = use_var_policy
              distribution_arguments[k] = strategy
      return distribution_arguments
  
imports: import collections
  import copy
  import re
  import sys
  import types
  import unittest
  from absl import app
  import six
  from tensorflow.python.client import session
  from tensorflow.python.distribute import collective_all_reduce_strategy
  from tensorflow.python.distribute import distribute_lib
  from tensorflow.python.distribute import multi_process_runner
  from tensorflow.python.distribute import multi_worker_test_base
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import config
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_combinations
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import flags
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import tf_decorator
  from tensorflow.python.util import tf_inspect
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 for calling the DistributionParameter obj's underlying member method code with example usage: obj.modified_arguments(kwargs, requested_parameters) and returns: distribution_arguments