code: def data_for_twos(dtype):
      if dtype.kind == "O":
          pytest.skip(f"{dtype} is not a numeric dtype")
      arr = np.ones(100) * 2
      return NumpyExtensionArray._from_sequence(arr, dtype=dtype)
  
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 10 for calling a global function with example usage: data_for_twos(dtype) and returns: NumpyExtensionArray