<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_defaults_file(*a, **kw):
 """Get a file object with YAML data of configuration defaults. Arguments are passed through to :func:`get_defaults_str`. """

    fd = StringIO()
    fd.write(get_defaults_str(*a, **kw))
    fd.seek(0)
    return fd