code: def test_from_array_masked_array():
      m = np.ma.masked_array(
          [1, 2, 3], mask=[True, True, False], fill_value=10
      )
      dm = da.from_array(m, chunks=(2,), asarray=False)
      assert_eq(dm, m)
  
imports: from __future__ import annotations
  import random
  import sys
  from copy import deepcopy
  from itertools import product
  import numpy
  import pytest
  import dask.array
  from dask.array.numpy_compat import ComplexWarning, _numpy_123
  from dask.array.utils import assert_eq
  from dask.base import tokenize
  from dask.utils import typename
label_desc: Use image node_id 2 for calling a global function with example usage: test_from_array_masked_array() without return types