code: def is_global_constant(node):
      if isinstance(node, ConstantIntr):
          return True
  
      if not isinstance(node, ast.FunctionDef):
          return False
  
      return metadata.get(node.body[0], metadata.StaticReturn)
  
file_path: catboost/contrib/python/pythran/pythran/analyses/extended_syntax_check.py
imports: from pythran.passmanager import ModuleAnalysis
  from pythran.analyses import StrictAliases, ArgumentEffects
  from pythran.syntax import PythranSyntaxError
  from pythran.intrinsic import ConstantIntr, FunctionIntr
  from pythran import metadata
  import gast
label_desc: Use image node_id 1 for calling a global function with example usage: is_global_constant(node) and returns: metadata, True, False