@staticmethod
def get_class_from_string(class_name: str) ->object:
    """Take a class name as a string and return the actual class

        Args:
            class_name: Name of class.

        Returns:
            Actual class.
        """
    parts = class_name.split('.')
    module_name = '.'.join(parts[:-1])
    cls = __import__(module_name)
    for comp in parts[1:]:
        cls = getattr(cls, comp)
    return cls
