code: def _snake_to_camel(name):
      return "".join(
          part.capitalize() for part in name.split("_") if part
      )
  
imports: import contextlib
  import functools
  import inspect
  import weakref
  from collections import OrderedDict
  from funsor.registry import PartialDispatcher
  from funsor.util import methodof
label_desc: Use image node_id 4 for calling a global function with example usage: _snake_to_camel(name) and returns: str