code: def next_power_of_two(n):
      """Round n up to the nearest power of 2"""
      return 1 if n == 0 else 2 ** (n - 1).bit_length()
  
file_path: hivemind/hivemind/averaging/key_manager.py
imports: import random
  import re
  from typing import List, Optional, Tuple
  import numpy
  from hivemind.averaging.group_info import GroupInfo
  from hivemind.dht import DHT
  from hivemind.p2p import PeerID
  from hivemind.utils import DHTExpiration, get_logger
label_desc: Use image node_id 3 for calling a global function with example usage: next_power_of_two(n) and returns: unknown