code: def test_schema_type_promotion(self):
      client = pulsar.Client(self.serviceUrl)
  
      schemas = [
          ("avro", AvroSchema(ExampleRecord)),
          ("json", JsonSchema(ExampleRecord)),
      ]
  
      for schema_name, schema in schemas:
          topic = f"test_schema_type_promotion_{schema_name}"
  
          consumer = client.subscribe(
              topic=topic,
              subscription_name=f"my-sub-{schema_name}",
              schema=schema,
          )
          producer = client.create_producer(topic=topic, schema=schema)
          sendValue = ExampleRecord(
              str_field=b"test",
              int_field=1,
              float_field=3,
              bytes_field="str",
          )
  
          producer.send(sendValue)
  
          msg = consumer.receive()
          msg_value = msg.value()
          self.assertEqual(msg_value.str_field, sendValue.str_field)
          self.assertEqual(msg_value.int_field, sendValue.int_field)
          self.assertEqual(msg_value.float_field, sendValue.float_field)
          self.assertEqual(msg_value.bytes_field, sendValue.bytes_field)
          consumer.acknowledge(msg)
  
      client.close()
  
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 34 for calling the SchemaTest obj's underlying member method code with example usage: obj.test_schema_type_promotion() without return types