class_docstr: Manage state for setup/teardown of a preload module
  
  Parameters
  ----------
  dask_server: dask.distributed.Server
      The Worker or Scheduler
  name: str
      module name, file name, or web address to load
  argv: [str]
      List of string arguments passed to click-configurable `dask_setup`.
  file_dir: str
      Path of a directory where files should be copied
class_docstr_tok: ["Manage","state","for","setup\/teardown","of","a","preload","module","Parameters","--","--","--","--","--","dask_server",":","dask.distributed.Server","The","Worker","or","Scheduler","name",":","str","module","name",",","file","name",",","or","web","address","to","load","argv",":","[","str","]","List","of","string","arguments","passed","to","click-configurable","`","dask_setup","`",".","file_dir",":","str","Path","of","a","directory","where","files","should","be","copied"]
code: def __init__(
      self,
      dask_object: Server | Client,
      name: str,
      argv: Iterable[str],
      file_dir: str | None,
  ):
      self.dask_object = dask_object
      self.name = name
      self.argv = list(argv)
      self.file_dir = file_dir
  
      logger.info("Creating preload: %s", self.name)
  
      if is_webaddress(name):
          self.module = _download_module(name)
      else:
          self.module = _import_module(name, file_dir)
  
imports: from __future__ import annotations
  import filecmp
  import inspect
  import logging
  import os
  import shutil
  import sys
  from collections.abc import Iterable, Sequence
  from importlib import import_module
  from types import ModuleType
  from typing import TYPE_CHECKING, cast
  import click
  from dask.utils import tmpfile
  from distributed.core import Server
  from distributed.utils import import_file
label_desc: Use image node_id 1 to create a new Preload object  with example: obj = Preload(dask_object, name, argv, file_dir)