code: def test__to_leaderboard_entry():
      # given
      entry = {
          "experimentId": "foo",
          "attributes": [
              {
                  "name": "plugh",
                  "type": "float",
                  "floatProperties": {
                      "value": 1.0,
                  },
              },
              {
                  "name": "sys/id",
                  "type": "string",
                  "stringProperties": {
                      "value": "TEST-123",
                  },
              },
          ],
      }
  
      # when
      result = to_leaderboard_entry(entry=entry)
  
      # then
      assert result.id == "foo"
      assert result.attributes == [
          AttributeWithProperties(
              path="plugh",
              type=AttributeType.FLOAT,
              properties={
                  "value": 1.0,
              },
          ),
          AttributeWithProperties(
              path="sys/id",
              type=AttributeType.STRING,
              properties={
                  "value": "TEST-123",
              },
          ),
      ]
  
file_path: neptune-client/tests/unit/neptune/new/api/test_searching_entries.py
imports: from typing import List, Sequence
  from mock import call, patch
  from neptune.api.searching_entries import iter_over_pages, to_leaderboard_entry
  from neptune.internal.backends.api_model import AttributeType, AttributeWithProperties, LeaderboardEntry
label_desc: Use image node_id 1 for calling a global function with example usage: test__to_leaderboard_entry() without return types