class_docstr: Runs a user-defined Python function.
class_docstr_tok: ["Runs","a","user-defined","Python","function","."]
code: def bind_addresses(self, **kwargs):
      if self._launch_context.launch_type in [
          context.LaunchType.LOCAL_MULTI_THREADING,
          context.LaunchType.LOCAL_MULTI_PROCESSING,
          context.LaunchType.TEST_MULTI_PROCESSING,
          context.LaunchType.TEST_MULTI_THREADING,
      ]:
          addressing.bind_addresses_local(self.addresses)
      elif (
          self._launch_context.launch_type
          == context.LaunchType.VERTEX_AI
      ):
          addressing.bind_addresses_vertex_ai(self.addresses, **kwargs)
      else:
          raise NotImplementedError(
              "Unsupported launch type: {}".format(
                  self._launch_context.launch_type
              )
          )
  
imports: import functools
  import itertools
  from typing import Any, Callable, Generic, TypeVar
  from absl import flags
  from absl import logging
  from launchpad import context
  from launchpad import lazy_loader
  from launchpad.nodes import base
  from launchpad.nodes import dereference
  from launchpad.nodes.python import addressing
  from launchpad.nodes.python import local_multi_processing
  import tree
label_desc: Use image node_id 6 for calling the PyNode obj's underlying member method code with example usage: obj.bind_addresses() without return types