def was_overriden(a):
            """
            Returns if function `a` was not defined in this file
            """
            # we know that the function is overriden if the function was not defined in this file
            # because this is a dynamic class, equality checks will always return false
            # TODO: this is a hack, but i'm not sure how to make it more robust
            return inspect.getfile(a) != inspect.getfile(createGymWrapper)

            Returns if function `a` was not defined in this file
            
metadrive/envs/gym_wrapper.py