code: def minimum(f, symbol, domain=S.Reals):
      """
      Returns the minimum value of a function in the given domain.
  
      Parameters
      ==========
  
      f : :py:class:`~.Expr`
          The concerned function.
      symbol : :py:class:`~.Symbol`
          The variable for minimum value needs to be determined.
      domain : :py:class:`~.Interval`
          The domain over which the minimum have to be checked.
          If unspecified, then the global minimum is returned.
  
      Returns
      =======
  
      number
          Minimum value of the function in the given domain.
  
      Examples
      ========
  
      >>> from sympy import Interval, Symbol, S, sin, cos, minimum
      >>> x = Symbol('x')
  
      >>> f = x**2 + 2*x + 5
      >>> minimum(f, x, S.Reals)
      4
  
      >>> minimum(sin(x), x, Interval(2, 3))
      sin(3)
  
      >>> minimum(sin(x)*cos(x), x)
      -1/2
  
      """
      if isinstance(symbol, Symbol):
          if domain is S.EmptySet:
              raise ValueError(
                  "Minimum value not defined for empty domain."
              )
  
          return function_range(f, symbol, domain).inf
      else:
          raise ValueError("%s is not a valid symbol." % symbol)
  
imports: from .accumulationbounds import AccumBounds, AccumulationBounds
  from .singularities import singularities
  from sympy.core import Pow, S
  from sympy.core.function import diff, expand_mul, Function
  from sympy.core.kind import NumberKind
  from sympy.core.mod import Mod
  from sympy.core.numbers import equal_valued
  from sympy.core.relational import Relational
  from sympy.core.symbol import Symbol, Dummy
  from sympy.core.sympify import _sympify
  from sympy.functions.elementary.complexes import Abs, im, re
  from sympy.functions.elementary.exponential import exp, log
  from sympy.functions.elementary.integers import frac
  from sympy.functions.elementary.piecewise import Piecewise
  from sympy.functions.elementary.trigonometric import TrigonometricFunction, sin, cos, tan, cot, csc, sec, asin, acos, acot, atan, asec, acsc
  from sympy.functions.elementary.hyperbolic import sinh, cosh, tanh, coth, sech, csch, asinh, acosh, atanh, acoth, asech, acsch
  from sympy.polys.polytools import degree, lcm_list
  from sympy.sets.sets import Interval, Intersection, FiniteSet, Union, Complement
  from sympy.sets.fancysets import ImageSet
  from sympy.sets.conditionset import ConditionSet
  from sympy.utilities import filldedent
  from sympy.utilities.iterables import iterable
label_desc: Use image node_id 10 for calling a global function with example usage: minimum(f, symbol, domain) and returns: function_range