code: def test_set_policy_attrs_when_cloned(self):
      # None of the attributes has a default value of None, so we set them
      # all to None in the clone call and check that it worked.
      for policyclass, defaults in self.policies.items():
          testattrdict = {attr: None for attr in defaults}
          policy = policyclass.clone(**testattrdict)
          for attr in defaults:
              self.assertIsNone(getattr(policy, attr))
  
imports: import io
  import types
  import textwrap
  import unittest
  import email.errors
  import email.policy
  import email.parser
  import email.generator
  import email.message
  from email import headerregistry
label_desc: Use image node_id 5 for calling the PolicyAPITests obj's underlying member method code with example usage: obj.test_set_policy_attrs_when_cloned() without return types