code: def curr_block():
      if len(BLOCK_STACK) == 0:
          raise ValueError(
              "Must call Builder inside an Function" + " or Block"
          )
      return BLOCK_STACK[-1]
  
imports: from collections import Counter, OrderedDict
  import copy
  import logging
  import numpy
  from six import string_types
  from .None import SPACES, types
  from .var import Var, InternalVar, ListVar
  from .visitors.dot_visitor import DotVisitor
  from .types.symbolic import k_used_symbols, k_num_internal_syms, any_symbolic, is_symbolic
  from .input_type import TupleInputType
label_desc: Use image node_id 1 for calling a global function with example usage: curr_block() and returns: BLOCK_STACK