code: def register_clientside_callback(
      callback_list,
      callback_map,
      config_prevent_initial_callbacks,
      inline_scripts,
      clientside_function,
      *args,
      **kwargs,
  ):
      (
          output,
          inputs,
          state,
          prevent_initial_call,
      ) = handle_callback_args(args, kwargs)
      insert_callback(
          callback_list,
          callback_map,
          config_prevent_initial_callbacks,
          output,
          None,
          inputs,
          state,
          None,
          prevent_initial_call,
      )
  
      # If JS source is explicitly given, create a namespace and function
      # name, then inject the code.
      if isinstance(clientside_function, str):
          namespace = "_dashprivate_clientside_funcs"
          # Create a hash from the function, it will be the same always
          function_name = hashlib.md5(
              clientside_function.encode("utf-8")
          ).hexdigest()
  
          inline_scripts.append(
              _inline_clientside_template.format(
                  namespace=namespace,
                  function_name=function_name,
                  clientside_function=clientside_function,
              )
          )
  
      # Callback is stored in an external asset.
      else:
          namespace = clientside_function.namespace
          function_name = clientside_function.function_name
  
      callback_list[-1]["clientside_function"] = {
          "namespace": namespace,
          "function_name": function_name,
      }
  
file_path: dash/dash/_callback.py
imports: import collections
  import hashlib
  from functools import wraps
  import flask
  from .dependencies import handle_callback_args, handle_grouped_callback_args, Output
  from .exceptions import PreventUpdate, WildcardInLongCallback, MissingLongCallbackManagerError, LongCallbackError
  from ._grouping import flatten_grouping, make_grouping_by_index, grouping_len
  from ._utils import create_callback_id, stringify_id, to_json, coerce_to_list, AttributeDict, clean_property_name
  from .None import _validate
  from .long_callback.managers import BaseLongCallbackManager
  from ._callback_context import context_value
label_desc: Use image node_id 6 for calling a global function with example usage: register_clientside_callback(callback_list, callback_map, config_prevent_initial_callbacks, inline_scripts, clientside_function) without return types