code: def test_task(self):
      import lore.__main__
  
      args = ("task", "tests.mocks.tasks.EchoTask", "--arg1", "true")
      with suppress_stdout():
          if sys.version_info[0] == 2:
              lore.__main__.main(args)
              self.assertTrue(True)
          else:
              with self.assertLogs("lore.__main__") as log:
                  lore.__main__.main(args)
                  self.assertEqual(
                      log.output,
                      [
                          "INFO:lore.__main__:starting task: "
                          + "tests.mocks.tasks.EchoTask {'arg1': 'true'}"
                      ],
                  )
  
file_path: lore/tests/unit/test_main.py
imports: import unittest
  import sys
  from lore.util import suppress_stdout
label_desc: Use image node_id 1 for calling the TestTask obj's underlying member method code with example usage: obj.test_task() without return types