def get_class_that_defined_method(self, meth):
        try:
            class_mro = inspect.getmro(meth.im_class)
        except AttributeError:
            return None
        for cls in class_mro:
            if meth.__name__ in cls.__dict__:
                return cls
        return None
dataset/ETHPy150Open andriyko/sublime-robot-framework-assistant/dataparser/data_parser/data_parser.py/DataParser.get_class_that_defined_method/original