code: def test_dataframe_scatter_by_map_7513(ids):
      df = DataFrame({"id": ids, "val": [0, 1, 2, 3]})
      with pytest.raises(ValueError):
          df.scatter_by_map(df["id"])
  
imports: import string
  from itertools import product
  import numpy
  import pandas
  import pytest
  from cudf import DataFrame, Series
  from cudf.core.column import NumericalColumn
  from cudf.testing._utils import DATETIME_TYPES, NUMERIC_TYPES, assert_eq, assert_exceptions_equal, expect_warning_if
label_desc: Use image node_id 18 for calling a global function with example usage: test_dataframe_scatter_by_map_7513(ids) without return types