code: def test_scalar_arithmetics_with_dask_instances():
      s = dd.core.Scalar({("s", 0): 10}, "s", "i8")
      e = 10
  
      pds = pd.Series([1, 2, 3, 4, 5, 6, 7])
      dds = dd.from_pandas(pds, 2)
  
      pdf = pd.DataFrame(
          {"a": [1, 2, 3, 4, 5, 6, 7], "b": [7, 6, 5, 4, 3, 2, 1]}
      )
      ddf = dd.from_pandas(pdf, 2)
  
      # pandas Series
      result = pds + s  # this result pd.Series (automatically computed)
      assert isinstance(result, pd.Series)
      assert_eq(result, pds + e)
  
      result = s + pds  # this result dd.Series
      assert isinstance(result, dd.Series)
      assert_eq(result, pds + e)
  
      # dask Series
      result = dds + s  # this result dd.Series
      assert isinstance(result, dd.Series)
      assert_eq(result, pds + e)
  
      result = s + dds  # this result dd.Series
      assert isinstance(result, dd.Series)
      assert_eq(result, pds + e)
  
      # pandas DataFrame
      result = (
          pdf + s
      )  # this result pd.DataFrame (automatically computed)
      assert isinstance(result, pd.DataFrame)
      assert_eq(result, pdf + e)
  
      result = s + pdf  # this result dd.DataFrame
      assert isinstance(result, dd.DataFrame)
      assert_eq(result, pdf + e)
  
      # dask DataFrame
      result = ddf + s  # this result dd.DataFrame
      assert isinstance(result, dd.DataFrame)
      assert_eq(result, pdf + e)
  
      result = s + ddf  # this result dd.DataFrame
      assert isinstance(result, dd.DataFrame)
      assert_eq(result, pdf + e)
  
imports: from __future__ import annotations
  import contextlib
  import warnings
  from datetime import datetime
  import numpy
  import pandas
  import pytest
  from pandas.api.types import is_scalar
  import dask.dataframe
  from dask.array.numpy_compat import _numpy_125
  from dask.dataframe._compat import PANDAS_GE_140, PANDAS_GE_150, PANDAS_GE_200, PANDAS_VERSION, check_numeric_only_deprecation
  from dask.dataframe.utils import assert_dask_graph, assert_eq, make_meta, pyarrow_strings_enabled
label_desc: Use image node_id 7 for calling a global function with example usage: test_scalar_arithmetics_with_dask_instances() without return types