code: def calc_label_from_name(name: str) -> int:
      hashed = hashlib.sha384(name.encode()).digest()
      return int_from_bytes(hashed[:8])
  
imports: import enum
  import hashlib
  import heapq
  import sys
  from collections import OrderedDict, abc
  from functools import lru_cache
  from typing import TYPE_CHECKING, List, Optional, Sequence, Tuple, Type, TypeVar, Union
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.compat import int_from_bytes
  from hypothesis.internal.floats import next_up
label_desc: Use image node_id 1 for calling a global function with example usage: calc_label_from_name(name) and returns: int_from_bytes