def METHOD_NAME(obj, prefix):
  if obj is None:
    return obj
  if prefix is None or prefix == '':
    return obj
  if isinstance(prefix, str):
    if isinstance(obj, str) and len(prefix) > 0 and obj.startswith(prefix):
      obj = obj[len(prefix):]
    elif isinstance(obj, dict):
      obj = {k: METHOD_NAME(v, prefix) for k, v in obj.items()}
    elif isinstance(obj, list):
      obj = [METHOD_NAME(item, prefix) for item in obj]
    return obj
  elif isinstance(prefix, list):
    for pre in prefix:
      obj = METHOD_NAME(obj, pre)
    return obj
  else:
    raise Exception('prefix {} is not string or list!'.format(prefix))