code: def suppress_warnings(function):
      """
      Decorate the given function to suppress any warnings.
  
      Parameters
      ----------
      function : function
          Function to be decorated.
  
      Returns
      -------
      decorated function
          Decorated function.
  
      """
      # needed to preserve docstring of the decorated function
      from functools import wraps
  
      @wraps(function)
      def decorator_function(*args, **kwargs):
          """
          Decorator function to suppress warnings.
  
          Parameters
          ----------
          args : arguments, optional
              Arguments passed to function to be decorated.
          kwargs : keyword arguments, optional
              Keyword arguments passed to function to be decorated.
  
          Returns
          -------
          decorated function
              Decorated function.
  
          """
          import warnings
  
          with warnings.catch_warnings():
              warnings.simplefilter("ignore")
              return function(*args, **kwargs)
  
      return decorator_function
  
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import contextlib
  import io
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: suppress_warnings(function) and returns: decorator_function, function