code: def test_errorbar_remove():
      # Regression test for a bug that caused remove to fail when using
      # fmt='none'
  
      ax = plt.gca()
  
      eb = ax.errorbar([1], [1])
      eb.remove()
  
      eb = ax.errorbar([1], [1], xerr=1)
      eb.remove()
  
      eb = ax.errorbar([1], [1], yerr=2)
      eb.remove()
  
      eb = ax.errorbar([1], [1], xerr=[2], yerr=2)
      eb.remove()
  
      eb = ax.errorbar([1], [1], fmt="none")
      eb.remove()
  
imports: import numpy
  import matplotlib.pyplot
label_desc: Use image node_id 2 for calling a global function with example usage: test_errorbar_remove() without return types