code: def overwrite_staticmethod(obj, function):
      qualname = getattr(obj, function).__qualname__
  
      def overwritten(*args, **kwargs):
          raise TensorforceError(
              message="Function {}() is a static method.".format(
                  qualname
              )
          )
  
      setattr(obj, function, overwritten)
  
imports: from datetime import datetime
  import importlib
  import logging
  import numpy
  import tensorflow
  from tensorforce import TensorforceError
label_desc: Use image node_id 2 for calling a global function with example usage: overwrite_staticmethod(obj, function) without return types