code: def _assert_encoding_roundtrip(value):
      lit = hl.literal(value)
      round_trip_just_python_encoding = lit.dtype._from_encoding(
          lit.dtype._to_encoding(value)
      )
      round_trip_through_scala = hl.eval(lit)
      for round_trip in (
          round_trip_just_python_encoding,
          round_trip_through_scala,
      ):
          if isinstance(value, np.ndarray):
              assert_array_equal(round_trip, value)
          else:
              assert round_trip == value
  
imports: import re
  import unittest
  import numpy
  from numpy.testing import assert_array_equal
  import hail
  import hail.ir
  from hail.ir.renderer import CSERenderer
  from hail.expr import construct_expr
  from hail.expr.types import tint32
  from hail.utils.java import Env
  from hail.utils import new_temp_file
  from test.hail.helpers import *
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_encoding_roundtrip(value) without return types