code: def next_power_of_2(n):
      """Return next power of 2 greater than or equal to n"""
      n -= 1  # greater than OR EQUAL TO n
      shift = 1
      while (n + 1) & n:  # n+1 is not a power of 2 yet
          n |= n >> shift
          shift *= 2
      return max(4, n + 1)
  
imports: from __future__ import division
  import math
  import numpy
  from ...gloo import Texture2D, VertexBuffer, IndexBuffer
  from .util import dtype_reduce
  from .array_list import ArrayList
label_desc: Use image node_id 1 for calling a global function with example usage: next_power_of_2(n) and returns: max