code: def install_method(method_name):
      def _not_implemented(self, *args, **kwargs):
          raise NotImplementedError(
              f"Object '{self._name}' was mocked out during packaging but it is being used in {method_name}"
          )
  
      setattr(MockedObject, method_name, _not_implemented)
  
label_desc: Use image node_id 1 for calling a global function with example usage: install_method(method_name) without return types