code: def test_dot_1d_ndarray(self, obj, expected):
      # can pass correct-length array
      row = obj.iloc[0] if obj.ndim == 2 else obj
  
      result = obj.dot(row.values)
      expected = obj.dot(row)
      self.reduced_dim_assert(result, expected)
  
imports: import numpy
  import pytest
  from pandas import DataFrame, Series
  import pandas._testing
label_desc: Use image node_id 7 for calling the DotSharedTests obj's underlying member method code with example usage: obj.test_dot_1d_ndarray(obj, expected) without return types