    def run_pre_spawn_hook(self):
        """Run the pre_spawn_hook if defined"""
        if self.pre_spawn_hook:
            return self.pre_spawn_hook(self)
Run the pre_spawn_hook if defined
jupyterhub/spawner.py