code: def isPowerOf(x, base):
      assert isinstance(base, int), "Base has to be a integer."
      assert base > 1, "Base has to a interger larger than 1."
      assert x > 0
      if (base ** int(math.log(x, base))) == x:
          return True
      return False
  
imports: from typing import List, Tuple, Dict, Iterator, Optional
  import math
  import numpy
  import networkx
label_desc: Use image node_id 5 for calling a global function with example usage: isPowerOf(x, base) and returns: False, True