docstr: Tests overriding final methods on instances of a class.
docstr_tok: ["Tests","overriding","final","methods","on","instances","of","a","class","."]
code: def test_override_on_instance(self):
      """
      Tests overriding final methods on instances of a class.
      """
  
      class SubClass(self.class_):
          def h(self):
              pass
  
      s = SubClass()
      with self.assertRaises(TypeError):
          s.f = lambda self: "SubClass: f"
  
      with self.assertRaises(TypeError):
          s.a = lambda self: "SubClass: a"
  
imports: from abc import abstractmethod, ABCMeta
  from unittest import TestCase
  from six import with_metaclass
  from zipline.utils.final import FinalMeta, final
  from zipline.utils.metautils import compose_types
label_desc: Use image node_id 9 for calling the FinalMetaTestCase obj's underlying member method code with example usage: obj.test_override_on_instance() without return types