code: def test_json_schema_encode_remove_reserved_key(self):
      class SchemaB(Record):
          field = String(required=True)
  
      class SchemaA(Record):
          field = SchemaB()
  
      a = SchemaA(field=SchemaB(field="something"))
      b = JsonSchema(SchemaA).encode(a)
      # reserved field should not be in the encoded json
      self.assertTrue(b"_default" not in b)
      self.assertTrue(b"_required" not in b)
      self.assertTrue(b"_required_default" not in b)
  
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 31 for calling the SchemaTest obj's underlying member method code with example usage: obj.test_json_schema_encode_remove_reserved_key() without return types