def instantiate_zenpy_object(self, format_val=None, dummy=False):
obj_kwargs = self.object_kwargs.copy()<EOL>for key in obj_kwargs:<EOL><INDENT>value = obj_kwargs[key]<EOL>if '<STR_LIT:{}>' in value:<EOL><INDENT>if format_val is None:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>obj_kwargs[key] = value.format(format_val)<EOL><DEDENT><DEDENT>zenpy_object = self.ZenpyType(**obj_kwargs) if not dummy else None<EOL>if zenpy_object:<EOL><INDENT>self.assertTrue(all(k in zenpy_object.to_dict(serialize=True) for k in obj_kwargs))<EOL><DEDENT>return zenpy_object<EOL>
Create a Zenpy object of type ZenpyType with obj_kwargs passed to __init__.
Any values with the formatter "{}" will be replaced with format_val.

If dummy is True, simply return object (for testing type checking).