code: def box_series(typ, val, c):
      """
      Convert a native series structure to a Series object.
      """
      series = cgutils.create_struct_proxy(typ)(
          c.context, c.builder, value=val
      )
      series_const_obj = c.pyapi.unserialize(
          c.pyapi.serialize_object(Series._from_mgr)
      )
      mgr_const_obj = c.pyapi.unserialize(
          c.pyapi.serialize_object(SingleBlockManager.from_array)
      )
      index_obj = c.box(typ.index, series.index)
      array_obj = c.box(typ.as_array, series.values)
      name_obj = c.box(typ.namety, series.name)
      # This is basically equivalent of
      # pd.Series(data=array_obj, index=index_obj)
      # To improve perf, we will construct the Series from a manager
      # object to avoid checks.
      # We'll also set the name attribute manually to avoid validation
      mgr_obj = c.pyapi.call_function_objargs(
          mgr_const_obj,
          (
              array_obj,
              index_obj,
          ),
      )
      mgr_axes_obj = c.pyapi.object_getattr_string(mgr_obj, "axes")
      # Series._constructor_from_mgr(mgr, axes)
      series_obj = c.pyapi.call_function_objargs(
          series_const_obj, (mgr_obj, mgr_axes_obj)
      )
      c.pyapi.object_setattr_string(series_obj, "_name", name_obj)
  
      # Decrefs
      c.pyapi.decref(series_const_obj)
      c.pyapi.decref(mgr_axes_obj)
      c.pyapi.decref(mgr_obj)
      c.pyapi.decref(mgr_const_obj)
      c.pyapi.decref(index_obj)
      c.pyapi.decref(array_obj)
      c.pyapi.decref(name_obj)
  
      return series_obj
  
imports: from __future__ import annotations
  from contextlib import contextmanager
  import operator
  import numba
  from numba import types
  from numba.core import cgutils
  from numba.core.datamodel import models
  from numba.core.extending import NativeValue, box, lower_builtin, make_attribute_wrapper, overload, overload_attribute, overload_method, register_model, type_callable, typeof_impl, unbox
  from numba.core.imputils import impl_ret_borrowed
  import numpy
  from pandas._libs import lib
  from pandas.core.indexes.base import Index
  from pandas.core.indexing import _iLocIndexer
  from pandas.core.internals import SingleBlockManager
  from pandas.core.series import Series
label_desc: Use image node_id 16 for calling a global function with example usage: box_series(typ, val, c) and returns: series_obj