<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def store_dcnm_subnet_dict(self, subnet_dict, direc):
 """Store the subnet attributes and dict. """

        if direc == 'in':
            self.in_dcnm_subnet_dict = subnet_dict
            self.in_subnet_dict = self._parse_subnet(subnet_dict)
        else:
            self.out_dcnm_subnet_dict = subnet_dict
            self.out_subnet_dict = self._parse_subnet(subnet_dict)