code: def test_register_op_with_extending_steps_works():
      """
      Calling the custom pipeline operation with an argument should yield the same
      arguments passed back as a result
      :return:
      """
      test_pipe = Pipeline(STEPS, **PIPELINE_DEF_KWARGS)
  
      def custom_op(doc, context=None, settings=None, **kwargs):
          return settings
  
      custom_argument = {"argument": 1}
      test_pipe.register_operation("CUSTOM_STEP", custom_op)
      test_pipe.steps.append(("CUSTOM_STEP", custom_argument))
  
      results = test_pipe(TEXT)
  
      assert results["CUSTOM_STEP"] == custom_argument
  
file_path: textpipe/tests/test_pipeline.py
imports: import tempfile
  import pytest
  import spacy
  from textpipe.pipeline import Pipeline
label_desc: Use image node_id 8 for calling a global function with example usage: test_register_op_with_extending_steps_works() and returns: settings