code: def sort_keys(keys: List[str]):
      transformed = [
          "/".join(
              [
                  ".".join(
                      [_transform_key_part(k2) for k2 in k.split(".")]
                  )
                  for k in key.split("/")
              ]
          )
          for key in keys
      ]
  
      combined = [(t, k) for t, k in zip(transformed, keys)]
      combined = sorted(combined, key=lambda x: x[0])
      return [k for t, k in combined]
  
imports: from typing import Callable, Dict, List, TYPE_CHECKING
  from labml.internal.util.strings import is_pattern_match
label_desc: Use image node_id 2 for calling a global function with example usage: sort_keys(keys) and returns: unknown