code: def _expectTypeError(self, func):
      try:
          func()
          self.fail("Should have failed")
      except TypeError:
          # Expected
          pass
  
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 6 for calling the SchemaTest obj's underlying member method code with example usage: obj._expectTypeError(func) without return types