code: def validate_xy_or_geometry(glyph, x, y, geometry):
      if (
          geometry is None
          and (x is None or y is None)
          or geometry is not None
          and (x is not None or y is not None)
      ):
          raise ValueError(
              """
  {glyph} coordinates may be specified by providing both the x and y arguments, or by
  providing the geometry argument. Received:
      x: {x}
      y: {y}
      geometry: {geometry}
  """.format(
                  glyph=glyph,
                  x=repr(x),
                  y=repr(y),
                  geometry=repr(geometry),
              )
          )
  
imports: from __future__ import annotations
  from numbers import Number
  from math import log10
  import warnings
  import numpy
  import pandas
  import dask.dataframe
  import dask.array
  from xarray import DataArray, Dataset
  from .utils import Dispatcher, ngjit, calc_res, calc_bbox, orient_array, dshape_from_xarray_dataset
  from .utils import get_indices, dshape_from_pandas, dshape_from_dask
  from .utils import Expr
  from .resampling import resample_2d, resample_2d_distributed
  from .None import reductions
label_desc: Use image node_id 1 for calling a global function with example usage: validate_xy_or_geometry(glyph, x, y, geometry) without return types