code: def test_subplots_dup_columns_secondary_y_no_subplot(self):
      # GH 10962
      df = DataFrame(
          np.random.default_rng(2).random((5, 5)), columns=list("aaaaa")
      )
      ax = df.plot(secondary_y="a")
      _check_legend_labels(ax, labels=["a (right)"] * 5)
      assert len(ax.lines) == 0
      assert len(ax.right_ax.lines) == 5
  
imports: import string
  import numpy
  import pytest
  from pandas.compat import is_platform_linux
  from pandas.compat.numpy import np_version_gte1p24
  import pandas
  from pandas import DataFrame, Series, date_range
  import pandas._testing
  from pandas.tests.plotting.common import _check_axes_shape, _check_box_return_type, _check_legend_labels, _check_ticks_props, _check_visible, _flatten_visible
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 21 for calling the TestDataFramePlotsSubplots obj's underlying member method code with example usage: obj.test_subplots_dup_columns_secondary_y_no_subplot() without return types