code: def chebyshev(u, v, w=None):
      """
      Compute the Chebyshev distance.
  
      Computes the Chebyshev distance between two 1-D arrays `u` and `v`,
      which is defined as
  
      .. math::
  
         \\max_i {|u_i-v_i|}.
  
      Parameters
      ----------
      u : (N,) array_like
          Input vector.
      v : (N,) array_like
          Input vector.
      w : (N,) array_like, optional
          The weights for each value in `u` and `v`. Default is None,
          which gives each value a weight of 1.0
  
      Returns
      -------
      chebyshev : double
          The Chebyshev distance between vectors `u` and `v`.
  
      Examples
      --------
      >>> from scipy.spatial import distance
      >>> distance.chebyshev([1, 0, 0], [0, 1, 0])
      1
      >>> distance.chebyshev([1, 1, 0], [0, 1, 0])
      1
  
      """
      u = _validate_vector(u)
      v = _validate_vector(v)
      if w is not None:
          w = _validate_weights(w)
          has_weight = w > 0
          if has_weight.sum() < w.size:
              u = u[has_weight]
              v = v[has_weight]
      return max(abs(u - v))
  
imports: from __future__ import division, print_function, absolute_import
  import warnings
  import numpy
  from functools import partial
  from collections import namedtuple
  from scipy._lib.six import callable, string_types
  from scipy._lib.six import xrange
  from scipy._lib._util import _asarray_validated
  from .None import _distance_wrap
  from .None import _hausdorff
  from ..linalg import norm
  from ..special import rel_entr
label_desc: Use image node_id 30 for calling a global function with example usage: chebyshev(u, v, w) and returns: max