<human>:  write object to yaml file.
<bot>: Here is a Python function to write an object to a yaml file

import yaml

def write_object_to_yaml(obj, path):
  """
  Write object to yaml file.

  Examples:
    >>> write_object_to_yaml({'hello': 'world'}, 'test.yaml')

  """
  with open(path, 'w') as f:
    yaml.dump(obj, f)

# Enter the object
obj = {"hello": "world"}

# Enter the path
path = "test.yaml"

# Calling the function
print((write_object_to_yaml(obj, path)))

#Example Output
# None

#Remember to inspect code for bugs.