code: def convert(node: ast.AST, argname: str) -> object:
      if isinstance(node, ast.Name):
          if node.id != argname:
              raise ValueError("Non-local variable")
          return ARG
      return ast.literal_eval(node)
  
imports: import ast
  import inspect
  import math
  import operator
  from decimal import Decimal
  from fractions import Fraction
  from functools import partial
  from typing import Any, Callable, Collection, Dict, NamedTuple, Optional, TypeVar
  from hypothesis.internal.compat import ceil, floor
  from hypothesis.internal.floats import next_down, next_up
  from hypothesis.internal.reflection import extract_lambda_source
label_desc: Use image node_id 1 for calling a global function with example usage: convert(node, argname) and returns: ast, ARG