code: def test_sub_record_set_to_none(self):
      class NestedObj1(Record):
          na1 = String()
          nb1 = Double()
  
      class NestedObj2(Record):
          na2 = Integer()
          nb2 = Boolean()
          nc2 = NestedObj1()
  
      data_schema = AvroSchema(NestedObj2)
      r = NestedObj2(na2=1, nb2=True)
  
      data_encode = data_schema.encode(r)
      data_decode = data_schema.decode(data_encode)
  
      self.assertEqual(data_decode.__class__.__name__, "NestedObj2")
      self.assertEqual(data_decode, r)
      self.assertEqual(data_decode.na2, 1)
      self.assertTrue(data_decode.nb2)
  
imports: import math
  import logging
  import requests
  from typing import List
  from unittest import TestCase, main
  import fastavro
  import pulsar
  from pulsar.schema import *
  from enum import Enum
  import json
  from fastavro.schema import load_schema
label_desc: Use image node_id 27 for calling the SchemaTest obj's underlying member method code with example usage: obj.test_sub_record_set_to_none() without return types