You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: species_list.rb
    path of file: ./repos/mushroom-observer/app/models
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

#
#  = Species
    
  def construct_observation(name, args = {})
    raise("missing or invalid name: #{name.inspect}") unless name.is_a?(Name)

    args[:user] ||= User.current
    args[:when] ||= self.when
    args[:vote] ||= Vote.maximum_vote
    args[:notes] ||= ""
    args[:projects] ||= projects
    if !args[:where] && !args[:location]
      args[:where]    = location ? location.name : where
      args[:location] = location
    end