class_docstr: A class used to export/load remote functions and actors.
  Attributes:
      _worker: The associated worker that this manager related.
      _functions_to_export: The remote functions to export when
          the worker gets connected.
      _actors_to_export: The actors to export when the worker gets
          connected.
      _function_execution_info: The function_id
          and execution_info.
      _num_task_executions: The function
          execution times.
      imported_actor_classes: The set of actor classes keys (format:
          ActorClass:function_id) that are already in GCS.
class_docstr_tok: ["A","class","used","to","export\/load","remote","functions","and","actors",".","Attributes",":","_worker",":","The","associated","worker","that","this","manager","related",".","_functions_to_export",":","The","remote","functions","to","export","when","the","worker","gets","connected",".","_actors_to_export",":","The","actors","to","export","when","the","worker","gets","connected",".","_function_execution_info",":","The","function_id","and","execution_info",".","_num_task_executions",":","The","function","execution","times",".","imported_actor_classes",":","The","set","of","actor","classes","keys","(","format",":","ActorClass",":","function_id",")","that","are","already","in","GCS","."]
code: def export_actor_class(
      self,
      Class,
      actor_creation_function_descriptor,
      actor_method_names,
  ):
      if self._worker.load_code_from_local:
          module_name, class_name = (
              actor_creation_function_descriptor.module_name,
              actor_creation_function_descriptor.class_name,
          )
          # If the class is dynamic, we still export it to GCS
          # even if load_code_from_local is set True.
          if (
              self.load_function_or_class_from_local(
                  module_name, class_name
              )
              is not None
          ):
              return
  
      # `current_job_id` shouldn't be NIL, unless:
      # 1) This worker isn't an actor;
      # 2) And a previous task started a background thread, which didn't
      #    finish before the task finished, and still uses Ray API
      #    after that.
      assert not self._worker.current_job_id.is_nil(), (
          "You might have started a background thread in a non-actor "
          "task, please make sure the thread finishes before the "
          "task finishes."
      )
      job_id = self._worker.current_job_id
      key = make_function_table_key(
          b"ActorClass",
          job_id,
          actor_creation_function_descriptor.function_id.binary(),
      )
      serialized_actor_class = pickle_dumps(
          Class,
          f"Could not serialize the actor class "
          f"{actor_creation_function_descriptor.repr}",
      )
      actor_class_info = {
          "class_name": actor_creation_function_descriptor.class_name.split(
              "."
          )[
              -1
          ],
          "module": actor_creation_function_descriptor.module_name,
          "class": serialized_actor_class,
          "job_id": job_id.binary(),
          "collision_identifier": self.compute_collision_identifier(
              Class
          ),
          "actor_method_names": json.dumps(list(actor_method_names)),
      }
  
      check_oversized_function(
          actor_class_info["class"],
          actor_class_info["class_name"],
          "actor",
          self._worker,
      )
  
      self._worker.gcs_client.internal_kv_put(
          key,
          pickle.dumps(actor_class_info),
          True,
          KV_NAMESPACE_FUNCTION_TABLE,
      )
  
imports: import dis
  import sys
  import hashlib
  import importlib
  import inspect
  import json
  import logging
  import os
  import threading
  import time
  import traceback
  from collections import defaultdict, namedtuple
  from typing import Optional, Callable
  import ray
  import ray._private.profiling
  from ray import cloudpickle
  from ray._private import ray_constants
  from ray._private.inspect_util import is_class_method, is_function_or_method, is_static_method
  from ray._private.ray_constants import KV_NAMESPACE_FUNCTION_TABLE
  from ray._private.utils import check_oversized_function, ensure_str, format_error_message
  from ray._private.serialization import pickle_dumps
  from ray._raylet import JobID, PythonFunctionDescriptor, WORKER_PROCESS_SETUP_HOOK_KEY_NAME_GCS
label_desc: Use image node_id 14 for calling the FunctionActorManager obj's underlying member method code with example usage: obj.export_actor_class(Class, actor_creation_function_descriptor, actor_method_names) without return types