def rtiOutputFixture(rtiConnectorFixture):
  """
  This `pytest fixture <https://pytest.org/latest/fixture.html>`_
  creates a session-scoped :class:`rticonnextdds_connector.Output` object
  which is returned everytime this fixture method is referred.
  The initialized Output object is cleaned up at the end
  of a testing session.

  ``MyPublisher::MySquareWriter``  `datawriter
  <https://community.rti.com/static/documentation/connext-dds/5.2.3/doc/api/connext_dds/api_cpp2/classdds_1_1pub_1_1DataWriter.html>`_ in
  ``test/xml/TestConnector.xml``  `application profile
  <https://community.rti.com/rti-doc/510/ndds.5.1.0/doc/pdf/RTI_CoreLibrariesAndUtilities_XML_AppCreation_GettingStarted.pdf>`_
  is used for initializing the Output object.

  :param rtiConnectorFixture: :func:`rtiConnectorFixture`
  :type rtiConnectorFixture: `pytest.fixture  <https://pytest.org/latest/builtin.html#_pytest.python.fixture>`_
  :returns: session-scoped Output object for testing
  :rtype: :class:`rticonnextdds_connector.Output`
  """

  return rtiConnectorFixture.getOutput("MyPublisher::MySquareWriter")