code: def load_from_file(p: str) -> bytes:
      rp = resolve_user_filepath(p, ctx=None)
      with open(rp, "rb") as f:
          return f.read()
  
imports: from __future__ import annotations
  import logging
  import typing
  from dataclasses import dataclass
  from functools import lru_cache
  from http import HTTPStatus
  from typing import TYPE_CHECKING
  from ..._internal.utils import resolve_user_filepath
  from ...exceptions import InvalidArgument
  from ._import_hook import LATEST_PROTOCOL_VERSION
  from ._import_hook import import_generated_stubs
  from ._import_hook import import_grpc
label_desc: Use image node_id 1 for calling a global function with example usage: load_from_file(p) and returns: f