code: def group_by_key_prefix_and_remove_prefix(prefix, d):
      kwargs_with_prefix, kwargs = group_dict_by_key(
          lambda x: x.startswith(prefix), d
      )
      kwargs_without_prefix = dict(
          map(
              lambda x: (x[0][len(prefix) :], x[1]),
              tuple(kwargs_with_prefix.items()),
          )
      )
      return kwargs_without_prefix, kwargs
  
imports: import torch
  from torch import nn, einsum
  import torch.nn.functional
  from einops import rearrange, repeat
  from einops.layers.torch import Rearrange
label_desc: Use image node_id 2 for calling a global function with example usage: group_by_key_prefix_and_remove_prefix(prefix, d) and returns: kwargs_without_prefix,  kwargs