code: def create_small_file(upload_context):
      
      data_service = upload_context.make_data_service()
      parent_data, path_data, remote_file_id = upload_context.params
  
      # The small file will fit into one chunk so read into memory and hash it.
      chunk = path_data.read_whole_file()
      hash_data = path_data.get_hash()
  
      # Talk to data service uploading chunk and creating the file.
      upload_operations = FileUploadOperations(data_service, upload_context)
      upload_id, url_info = upload_operations.create_upload_and_chunk_url(
          upload_context.project_id, path_data, hash_data, storage_provider_id=upload_context.config.storage_provider_id)
      upload_operations.send_file_external(url_info, chunk)
      return upload_operations.finish_upload(upload_id, hash_data, parent_data, remote_file_id)
docs: Function run by CreateSmallFileCommand to create the file.
      Runs in a background process.
      :param upload_context: UploadContext: contains data service setup and file details.
      :return dict: DukeDS file data