code: def _mean(x, axis=None, keepdims=False, where=None):
      # Mean with support for where
      if where is None:
          return ivy.mean(x, axis=axis, keepdims=keepdims)
  
      filtered_x = ivy.where(where, ivy.array(x), ivy.zeros_like(x))
      counter_x = ivy.where(where, ivy.ones_like(x), ivy.zeros_like(x))
  
      sums = ivy.sum(filtered_x, axis=axis, keepdims=keepdims)
      counts = ivy.sum(counter_x, axis=axis, keepdims=keepdims)
  
      return ivy.divide(sums, counts)
  
imports: import ivy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back
  from ivy.func_wrapper import with_supported_dtypes
label_desc: Use image node_id 4 for calling a global function with example usage: _mean(x, axis, keepdims, where) and returns: ivy, ivy