code: def ensure_adjusted_array(ndarray_or_adjusted_array, missing_value):
      if isinstance(ndarray_or_adjusted_array, AdjustedArray):
          return ndarray_or_adjusted_array
      elif isinstance(ndarray_or_adjusted_array, ndarray):
          return AdjustedArray(
              ndarray_or_adjusted_array,
              {},
              missing_value,
          )
      else:
          raise TypeError(
              "Can't convert %s to AdjustedArray"
              % type(ndarray_or_adjusted_array).__name__
          )
  
imports: from textwrap import dedent
  from functools import partial
  from numpy import bool_, dtype, float32, float64, int32, int64, int16, uint16, ndarray, uint32, uint8
  from six import iteritems
  from toolz import merge_with
  from zipline.errors import WindowLengthNotPositive, WindowLengthTooLong
  from zipline.lib.labelarray import LabelArray
  from zipline.utils.numpy_utils import datetime64ns_dtype, float64_dtype, int64_dtype, uint8_dtype
  from zipline.utils.memoize import lazyval
  from ._float64window import AdjustedArrayWindow
  from ._int64window import AdjustedArrayWindow
  from ._labelwindow import AdjustedArrayWindow
  from ._uint8window import AdjustedArrayWindow
label_desc: Use image node_id 5 for calling a global function with example usage: ensure_adjusted_array(ndarray_or_adjusted_array, missing_value) and returns: ndarray_or_adjusted_array, AdjustedArray