code: def test_parse_mongo_db_arg_hostname_dbname_collection_name():
      assert parse_mongo_db_arg("localhost:28017:foo.bar") == {
          "url": "localhost:28017",
          "db_name": "foo",
          "collection": "bar",
      }
  
      assert parse_mongo_db_arg("www.mymongo.db:28017:bar.baz") == {
          "url": "www.mymongo.db:28017",
          "db_name": "bar",
          "collection": "baz",
      }
  
      assert parse_mongo_db_arg("123.45.67.89:27017:baz.foo") == {
          "url": "123.45.67.89:27017",
          "db_name": "baz",
          "collection": "foo",
      }
  
file_path: sacred/tests/test_observers/test_mongo_option.py
imports: import pytest
  from sacred.observers.mongo import parse_mongo_db_arg, DEFAULT_MONGO_PRIORITY
label_desc: Use image node_id 5 for calling a global function with example usage: test_parse_mongo_db_arg_hostname_dbname_collection_name() without return types