code: def test_remove(self):
      f = SomeFactor()
      p = Pipeline(columns={"f": f})
  
      with self.assertRaises(KeyError) as e:
          p.remove("not_a_real_name")
  
      self.assertEqual(f, p.remove("f"))
  
      with self.assertRaises(KeyError) as e:
          p.remove("f")
  
      self.assertEqual(e.exception.args, ("f",))
  
imports: import inspect
  from unittest import TestCase
  from mock import patch
  from catalyst.pipeline import Factor, Filter, Pipeline
  from catalyst.pipeline.data import USEquityPricing
  from catalyst.pipeline.graph import display_graph
  from catalyst.utils.numpy_utils import float64_dtype
label_desc: Use image node_id 5 for calling the PipelineTestCase obj's underlying member method code with example usage: obj.test_remove() without return types