code: def mad(x):
      return np.fabs(x - x.mean()).mean()
  
imports: from __future__ import annotations
  import contextlib
  import datetime
  import numpy
  import pandas
  import pytest
  import dask.dataframe
  from dask.dataframe._compat import PANDAS_GE_210
  from dask.dataframe.utils import assert_eq
label_desc: Use image node_id 7 for calling a global function with example usage: mad(x) and returns: np