code: def data_missing(allow_in_pandas, dtype):
      if dtype.numpy_dtype == "object":
          return NumpyExtensionArray(
              np.array([np.nan, (1,)], dtype=object)
          )
      return NumpyExtensionArray(np.array([np.nan, 1.0]))
  
imports: import numpy
  import pytest
  from pandas.core.dtypes.dtypes import NumpyEADtype
  import pandas
  import pandas._testing
  from pandas.api.types import is_object_dtype
  from pandas.core.arrays.numpy_ import NumpyExtensionArray
  from pandas.tests.extension import base
label_desc: Use image node_id 5 for calling a global function with example usage: data_missing(allow_in_pandas, dtype) and returns: NumpyExtensionArray, NumpyExtensionArray