def obtain_device_type(model):
 if ('881' in model):
  return 'router'
 else:
  return None

def obtain_device_type ( model ) : if ( '881' in model ) : return 'router' else : return None
determine the device_type based on the model .