code: def _get_sizeof_on_path(path, size):
      sys.path.append(os.fsdecode(path))
  
      # Dask will have already called _register_entry_point_plugins
      # before we can modify sys.path, so we re-register here.
      import dask.sizeof
  
      dask.sizeof._register_entry_point_plugins()
  
      import class_impl
  
      cls = class_impl.Impl(size)
      return sizeof(cls)
  
imports: from __future__ import annotations
  import os
  import sys
  from array import array
  import pytest
  from dask.multiprocessing import get_context
  from dask.sizeof import sizeof
  from dask.utils import funcname
label_desc: Use image node_id 18 for calling a global function with example usage: _get_sizeof_on_path(path, size) and returns: sizeof