code: def metrics_off_check(func):
      """
      Check metrics_off flag decorator.
  
      :param func: input function
      :type func: function
      :return: inner function
      """
  
      @wraps(func)
      def inner_function(*args, **kwargs):
          """
          Inner function.
  
          :param args: non-keyword arguments
          :type args: list
          :param kwargs: keyword arguments
          :type kwargs: dict
          :return: modified function result
          """
          if args[0].metrics_off:
              raise pycmMatrixError(METRICS_OFF_ERROR)
          return func(*args, **kwargs)
  
      return inner_function
  
imports: from __future__ import division
  import sys
  import math
  import numpy
  import re
  from .pycm_param import *
  from .pycm_error import pycmMatrixError
  from warnings import warn
  from functools import wraps
label_desc: Use image node_id 35 for calling a global function with example usage: metrics_off_check(func) and returns: inner_function, func