code: def test_derivative_numerically(
      f, z, tol=1.0e-6, a=2, b=-1, c=3, d=1
  ):
      """
      Test numerically that the symbolically computed derivative of f
      with respect to z is correct.
  
      This routine does not test whether there are Floats present with
      precision higher than 15 digits so if there are, your results may
      not be what you expect due to round-off errors.
  
      Examples
      ========
  
      >>> from sympy import sin
      >>> from sympy.abc import x
      >>> from sympy.core.random import test_derivative_numerically as td
      >>> td(sin(x), x)
      True
      """
      from sympy.core.numbers import comp
      from sympy.core.function import Derivative
  
      z0 = random_complex_number(a, b, c, d)
      f1 = f.diff(z).subs(z, z0)
      f2 = Derivative(f, z).doit_numerically(z0)
      return comp(f1.n(), f2.n(), tol)
  
file_path: sympy/sympy/core/random.py
imports: from sympy.utilities.iterables import is_sequence
  from sympy.utilities.misc import as_int
  import random
label_desc: Use image node_id 4 for calling a global function with example usage: test_derivative_numerically(f, z, tol, a, b, c, d) and returns: comp