original_string: public function createUserAvatar(AccountType $accountType): bool
      {
          $uri = sprintf(
              '%s/accounts/' . $accountType->email . '/',
              $this->clipUri($this->client->getConfig('base_uri'))
          );
  
          $response = $this->client->put(
              $uri,
              [
                  'headers'   => ['Accept' => 'application/json; charset=utf-8'],
                  'multipart' => $accountType->toArray(Type::ARRAY_MULTI_PART),
              ]
          );
  
          return $response->getStatusCode() === 201;
      }
code: public function createUserAvatar(AccountType $accountType): bool
      {
          $uri = sprintf(
              '%s/accounts/' . $accountType->email . '/',
              $this->clipUri($this->client->getConfig('base_uri'))
          );
  
          $response = $this->client->put(
              $uri,
              [
                  'headers'   => ['Accept' => 'application/json; charset=utf-8'],
                  'multipart' => $accountType->toArray(Type::ARRAY_MULTI_PART),
              ]
          );
  
          return $response->getStatusCode() === 201;
      }
code_tokens: public function createUserAvatar ( AccountType $ accountType ) : bool { $ uri = sprintf ( '%s/accounts/' . $ accountType -> email . '/' , $ this -> clipUri ( $ this -> client -> getConfig ( 'base_uri' ) ) ) ; $ response = $ this -> client -> put ( $ uri , [ 'headers' => [ 'Accept' => 'application/json; charset=utf-8' ] , 'multipart' => $ accountType -> toArray ( Type :: ARRAY_MULTI_PART ) , ] ) ; return $ response -> getStatusCode ( ) === 201 ; }
docstring: Create a new user avatar
  
  @param AccountType $accountType AccountType instance with data for new account
  
  @return bool
  @throws \Exception
docstring_tokens: Create a new user avatar