<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _create_from_stripe_object( 		cls, data, current_ids=None, pending_relations=None, save=True 	):
 		""" 		Instantiates a model instance using the provided data object received 		from Stripe, and saves it to the database if specified. 		:param data: The data dictionary received from the Stripe API. 		:type data: dict 		:param current_ids: stripe ids of objects that are currently being processed 		:type current_ids: set 		:param pending_relations: list of tuples of relations to be attached post-save 		:type pending_relations: list 		:param save: If True, the object is saved after instantiation. 		:type save: bool 		:returns: The instantiated object. 		"""


		instance = cls(
			**cls._stripe_object_to_record(
				data, current_ids=current_ids, pending_relations=pending_relations
			)
		)
		instance._attach_objects_hook(cls, data)

		if save:
			instance.save(force_insert=True)

		instance._attach_objects_post_save_hook(
			cls, data, pending_relations=pending_relations
		)

		return instance