code: def numeric_xarray(request, xarray_type, numeric_dtype):
      return xarray_type(np.arange(10, dtype=numeric_dtype))
  
file_path: plotly.py/packages/python/plotly/_plotly_utils/tests/validators/test_xarray_input.py
imports: import pytest
  import numpy
  import xarray
  import datetime
  from _plotly_utils.basevalidators import NumberValidator, IntegerValidator, DataArrayValidator, ColorValidator
label_desc: Use image node_id 7 for calling a global function with example usage: numeric_xarray(request, xarray_type, numeric_dtype) and returns: xarray_type