<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def class_name_to_resource_name(class_name: str) -> str: """Converts a camel case class name to a resource name with spaces. 'Foo Bar Object' :param class_name: The name to convert. :returns: The resource name. """

    s = re.sub('(.)([A-Z][a-z]+)', r'\1 \2', class_name)
    return re.sub('([a-z0-9])([A-Z])', r'\1 \2', s)