code: def null_check(input_data):
      # input_data can be cudf.Series, cudf.DataFrame, dask_cudf.Series
      # and dask_cudf.DataFrame
      has_null = input_data.isna().values.any()
      if isinstance(
          input_data, (dask_cudf.Series, dask_cudf.DataFrame)
      ):
          has_null = has_null.compute()
  
      if has_null:
          raise ValueError("Series/DataFrame contains NULL values")
  
imports: import numpy
  from .graph_implementation import simpleGraphImpl, simpleDistributedGraphImpl, npartiteGraphImpl
  import cudf
  import dask_cudf
  from cugraph.utilities.utils import import_optional
label_desc: Use image node_id 1 for calling a global function with example usage: null_check(input_data) without return types