code: def to_leaderboard_entry(entry: Dict[str, Any]) -> LeaderboardEntry:
      return LeaderboardEntry(
          id=entry["experimentId"],
          attributes=[
              AttributeWithProperties(
                  path=attr["name"],
                  type=AttributeType(attr["type"]),
                  properties=attr.__getitem__(
                      f"{attr['type']}Properties"
                  ),
              )
              for attr in entry["attributes"]
              if attr["type"] in SUPPORTED_ATTRIBUTE_TYPES
          ],
      )
  
file_path: neptune-client/src/neptune/api/searching_entries.py
imports: from typing import TYPE_CHECKING, Any, Dict, Generator, Iterable, List, Optional
  from bravado.client import construct_request
  from bravado.config import RequestConfig
  from neptune.internal.backends.api_model import AttributeType, AttributeWithProperties, LeaderboardEntry
  from neptune.internal.backends.hosted_client import DEFAULT_REQUEST_KWARGS
  from neptune.internal.backends.nql import NQLAggregator, NQLAttributeOperator, NQLAttributeType, NQLEmptyQuery, NQLQuery, NQLQueryAggregate, NQLQueryAttribute
  from neptune.internal.init.parameters import MAX_SERVER_OFFSET
label_desc: Use image node_id 2 for calling a global function with example usage: to_leaderboard_entry(entry) and returns: LeaderboardEntry