code: def lock(self, instance_id):
          '''
          Lock an instance
          '''
          nt_ks = self.compute_conn
          response = nt_ks.servers.lock(instance_id)
          return Truf lock(self, instance_id):
          '''
          Lock an instance
          '''
          nt_ks = self.compute_conn
          response = nt_ks.servers.lock(instance_id)
          return True
docs: Lock an instance