<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_class(self, classname, namespace, local_only=None, include_qualifiers=None, include_classorigin=None, property_list=None):
 # pylint: disable=invalid-name """ Get class from repository. Gets the class defined by classname from the repository, creates a copy, expands the copied class to include superclass properties if not localonly, and filters the class based on propertylist and includeClassOrigin. It also sets the propagated attribute. Parameters: classname (:term:`string`):
 Name of class to retrieve namespace (:term:`string`):
 Namespace from which to retrieve the class local_only (:class:`py:bool`):
 If `True`, only properties and methods in this specific class are returned. Otherwise properties and methods from the superclasses are included. include_qualifiers (:class:`py:bool`):
 If `True`, include qualifiers. Otherwise remove all qualifiers include_classorigin (:class:`py:bool`):
 If `True` return the class_origin attributes of properties and methods. property_list ():
 Properties to be included in returned class. If None, all properties are returned. If empty, no properties are returned Returns: Copy of the class if found with superclass properties installed and filtered per the keywords in params. Raises: CIMError: (CIM_ERR_NOT_FOUND) if class Not found in repository or CIMError: (CIM_ERR_INVALID_NAMESPACE) if namespace does not exist """


        class_repo = self._get_class_repo(namespace)

        # try to get the target class and create a copy for response
        try:
            c = class_repo[classname]
        except KeyError:
            raise CIMError(
                CIM_ERR_NOT_FOUND,
                _format("Class {0!A} not found in namespace {1!A}.",
                        classname, namespace))
        cc = deepcopy(c)

        if local_only:
            for prop, pvalue in cc.properties.items():
                if pvalue.propagated:
                    del cc.properties[prop]
            for method, mvalue in cc.methods.items():
                if mvalue.propagated:
                    del cc.methods[method]

        self._filter_properties(cc, property_list)

        if not include_qualifiers:
            self._remove_qualifiers(cc)

        if not include_classorigin:
            self._remove_classorigin(cc)
        return cc